@ -83,7 +83,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
children: [
Expanded (
child: CollapsingListView (
title: " Select Payment Method " . needTranslation ,
title: LocaleKeys . selectPaymentMethod . tr ( context: context ) ,
child: SingleChildScrollView (
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
@ -103,9 +103,9 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
Column (
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
Image. asset ( AppAssets . mada , width: 72. h , height: 25. h ) . toShimmer2 ( isShow: todoVM . isProcessingPayment ) ,
LocaleKeys. visaOrMastercard . tr ( context: context ) . toText16 ( isBold: true ) . toShimmer2 ( isShow: todoVM . isProcessingPayment ) ,
SizedBox ( height: 16. h ) ,
" Mada " . needTranslation . toText16 ( isBold: true ) . toShimmer2 ( isShow: todoVM . isProcessingPayment ) ,
LocaleKeys . mada . tr ( context: context ) . toText16 ( isBold: true ) . toShimmer2 ( isShow: todoVM . isProcessingPayment ) ,
] ,
) ,
SizedBox ( width: 8. h ) ,
@ -152,7 +152,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
] ,
) . toShimmer2 ( isShow: todoVM . isProcessingPayment ) ,
SizedBox ( height: 16. h ) ,
" Visa or Mastercard " . needTranslation . toText16 ( isBold: true ) . toShimmer2 ( isShow: todoVM . isProcessingPayment ) ,
LocaleKeys . visaOrMastercard . tr ( context: context ) . toText16 ( isBold: true ) . toShimmer2 ( isShow: todoVM . isProcessingPayment ) ,
] ,
) ,
SizedBox ( width: 8. h ) ,
@ -210,14 +210,14 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
SizedBox ( height: 24. h ) ,
" Total amount to pay " . needTranslation . toText18 ( isBold: true ) . paddingSymmetrical ( 24. h , 0. h ) ,
LocaleKeys . totalAmountToPay . tr ( context: context ) . toText18 ( isBold: true ) . paddingSymmetrical ( 24. h , 0. h ) ,
SizedBox ( height: 17. h ) ,
/ / Amount before tax
Row (
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
" Amount before tax " . needTranslation . toText14 ( isBold: true ) ,
LocaleKeys . amountBeforeTax . tr ( context: context ) . toText14 ( isBold: true ) ,
Utils . getPaymentAmountWithSymbol (
amountBeforeTax . toStringAsFixed ( 2 ) . toText16 ( isBold: true ) ,
AppColors . blackColor ,
@ -231,7 +231,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
Row (
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
" VAT 15% " . needTranslation . toText14 ( isBold: true , color: AppColors . greyTextColor ) ,
LocaleKeys . vat15 . tr ( context: context ) . toText14 ( isBold: true , color: AppColors . greyTextColor ) ,
Utils . getPaymentAmountWithSymbol (
taxAmount . toStringAsFixed ( 2 ) . toText14 ( isBold: true , color: AppColors . greyTextColor ) ,
AppColors . greyTextColor ,
@ -247,7 +247,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
Row (
mainAxisAlignment: MainAxisAlignment . spaceBetween ,
children: [
" " . needTranslation. toText14( isBold: true ) ,
" " . toText14( isBold: true ) ,
Utils . getPaymentAmountWithSymbol (
widget . totalAmount . toStringAsFixed ( 2 ) . toText24 ( isBold: true ) ,
AppColors . blackColor ,
@ -346,7 +346,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
}
void _checkPaymentStatus ( ) {
LoaderBottomSheet . showLoader ( loadingText: " Checking payment status, Please wait... " . needTranslation ) ;
LoaderBottomSheet . showLoader ( loadingText: LocaleKeys . checkingPaymentStatusPleaseWait . tr ( context: context ) ) ;
todoSectionViewModel . checkPaymentStatus (
transID: transID ,
@ -384,7 +384,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
required String paymentReference ,
required String paymentMethod ,
} ) {
LoaderBottomSheet . showLoader ( loadingText: " Processing payment, Please wait... " . needTranslation ) ;
LoaderBottomSheet . showLoader ( loadingText: LocaleKeys . processingPaymentPleaseWait . tr ( context: context ) ) ;
final user = appState . getAuthenticatedUser ( ) ;
@ -426,7 +426,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
required String advanceNumber ,
required String paymentReference ,
} ) {
LoaderBottomSheet . showLoader ( loadingText: " Finalizing payment, Please wait... " . needTranslation ) ;
LoaderBottomSheet . showLoader ( loadingText: LocaleKeys . finalizingPaymentPleaseWait . tr ( context: context ) ) ;
final user = appState . getAuthenticatedUser ( ) ;
@ -450,7 +450,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
}
void _autoGenerateInvoice ( ) {
LoaderBottomSheet . showLoader ( loadingText: " Generating invoice, Please wait... " . needTranslation ) ;
LoaderBottomSheet . showLoader ( loadingText: LocaleKeys . generatingInvoicePleaseWait . tr ( context: context ) ) ;
List < dynamic > selectedProcListAPI = widget . selectedProcedures . map ( ( element ) {
return {
@ -496,7 +496,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
children: [
Row (
children: [
" Here is your invoice #: " . needTranslation . toText14 (
LocaleKeys . hereIsYourInvoiceNumber . tr ( context: context ) . toText14 (
color: AppColors . textColorLight ,
weight: FontWeight . w500 ,
) ,
@ -510,7 +510,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
Expanded (
child: CustomButton (
height: 56. h ,
text: LocaleKeys . ok . tr ( ) ,
text: LocaleKeys . ok . tr ( context: context ) ,
onPressed: ( ) {
Navigator . pushAndRemoveUntil (
context ,
@ -528,8 +528,8 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
) ,
] ,
) ,
/ / title: " Payment Completed Successfully " . needTranslation ,
titleWidget: Utils . getSuccessWidget ( loadingText: " Payment Completed Successfully " . needTranslation ) ,
/ / title: LocaleKeys . paymentCompletedSuccessfully . tr ( context: context ) ,
titleWidget: Utils . getSuccessWidget ( loadingText: LocaleKeys . paymentCompletedSuccessfully . tr ( context: context ) ) ,
isCloseButtonVisible: false ,
isDismissible: false ,
isFullScreen: false ,
@ -607,7 +607,7 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
Navigator . of ( context ) . pop ( ) ;
showCommonBottomSheetWithoutHeight (
context ,
child: Utils . getErrorWidget ( loadingText: " Failed to initialize Apple Pay. Please try again. " . needTranslation ) ,
child: Utils . getErrorWidget ( loadingText: LocaleKeys . failedToInitializeApplePay . tr ( context: context ) ) ,
callBackFunc: ( ) { } ,
isFullScreen: false ,
isCloseButtonVisible: true ,