@ -87,13 +87,16 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					                          ) , 
                          ) , 
 
			
		
	
		
		
			
				
					
					                          SizedBox ( width:  8. h ) , 
                          SizedBox ( width:  8. h ) , 
 
			
		
	
		
		
			
				
					
					                          const  Spacer ( ) , 
                          const  Spacer ( ) , 
 
			
		
	
		
		
			
				
					
					                          Utils . buildSvgWithAssets ( 
                          Transform . flip ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                            icon:  AppAssets . forward_arrow_icon , 
                            flipX:  appState . isArabic ( )  ?  true  :  false , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            iconColor:  AppColors . blackColor , 
                            child:  Utils . buildSvgWithAssets ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                            width:  18. h , 
                              icon:  AppAssets . forward_arrow_icon , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            height:  13. h , 
                              iconColor:  AppColors . blackColor , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            fit:  BoxFit . contain , 
                              width:  18. h , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          ) . toShimmer2 ( isShow:  false ) , 
                              height:  13. h , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                              fit:  BoxFit . contain , 
 
			
		
	
		
		
			
				
					
					                            ) . toShimmer2 ( isShow:  false ) , 
 
			
		
	
		
		
			
				
					
					                          ) , 
 
			
		
	
		
		
			
				
					
					                        ] , 
                        ] , 
 
			
		
	
		
		
			
				
					
					                      ) . paddingSymmetrical ( 16. h ,  16. h ) , 
                      ) . paddingSymmetrical ( 16. h ,  16. h ) , 
 
			
		
	
		
		
			
				
					
					                    ) . paddingSymmetrical ( 24. h ,  0. h ) . onPress ( ( )  { 
                    ) . paddingSymmetrical ( 24. h ,  0. h ) . onPress ( ( )  { 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -126,13 +129,16 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					                          ) , 
                          ) , 
 
			
		
	
		
		
			
				
					
					                          SizedBox ( width:  8. h ) , 
                          SizedBox ( width:  8. h ) , 
 
			
		
	
		
		
			
				
					
					                          const  Spacer ( ) , 
                          const  Spacer ( ) , 
 
			
		
	
		
		
			
				
					
					                          Utils . buildSvgWithAssets ( 
                          Transform . flip ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                            icon:  AppAssets . forward_arrow_icon , 
                            flipX:  appState . isArabic ( )  ?  true  :  false , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            iconColor:  AppColors . blackColor , 
                            child:  Utils . buildSvgWithAssets ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                            width:  18. h , 
                              icon:  AppAssets . forward_arrow_icon , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            height:  13. h , 
                              iconColor:  AppColors . blackColor , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            fit:  BoxFit . contain , 
                              width:  18. h , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          ) . toShimmer2 ( isShow:  false ) , 
                              height:  13. h , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                              fit:  BoxFit . contain , 
 
			
		
	
		
		
			
				
					
					                            ) . toShimmer2 ( isShow:  false ) , 
 
			
		
	
		
		
			
				
					
					                          ) , 
 
			
		
	
		
		
			
				
					
					                        ] , 
                        ] , 
 
			
		
	
		
		
			
				
					
					                      ) . paddingSymmetrical ( 16. h ,  16. h ) , 
                      ) . paddingSymmetrical ( 16. h ,  16. h ) , 
 
			
		
	
		
		
			
				
					
					                    ) . paddingSymmetrical ( 24. h ,  0. h ) . onPress ( ( )  { 
                    ) . paddingSymmetrical ( 24. h ,  0. h ) . onPress ( ( )  { 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -189,7 +195,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					                        if  ( Utils . havePrivilege ( 103 ) )  { 
                        if  ( Utils . havePrivilege ( 103 ) )  { 
 
			
		
	
		
		
			
				
					
					                          startApplePay ( ) ; 
                          startApplePay ( ) ; 
 
			
		
	
		
		
			
				
					
					                        }  else  { 
                        }  else  { 
 
			
		
	
		
		
			
				
					
					                          openPaymentURL ( " applep ay" ) ; 
                          openPaymentURL ( " AppleP ay" ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					                        } 
                        } 
 
			
		
	
		
		
			
				
					
					                      } ) 
                      } ) 
 
			
		
	
		
		
			
				
					
					                    :  SizedBox ( height:  12. h ) , 
                    :  SizedBox ( height:  12. h ) , 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -214,8 +220,8 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . clinicID  =  0 ; 
    applePayInsertRequest . clinicID  =  0 ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . currency  =  appState . getAuthenticatedUser ( ) ! . outSa !  = =  0  ?  " SAR "  :  " AED " ; 
    applePayInsertRequest . currency  =  appState . getAuthenticatedUser ( ) ! . outSa !  = =  0  ?  " SAR "  :  " AED " ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . customerEmail  =  " CustID_ ${ appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) } @HMG.com " ; 
    applePayInsertRequest . customerEmail  =  " CustID_ ${ habibWalletVM. fileNumber  . toString ( ) } @HMG.com " ; 
 
			
				
				
			
		
	
		
		
			
				
					
					    applePayInsertRequest . customerID  =  appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) ; 
    applePayInsertRequest . customerID  =  habibWalletVM. fileNumber  . toString ( ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					    applePayInsertRequest . customerName  =  " ${ appState . getAuthenticatedUser ( ) ! . firstName }   ${ appState . getAuthenticatedUser ( ) ! . lastName } " ; 
    applePayInsertRequest . customerName  =  " ${ appState . getAuthenticatedUser ( ) ! . firstName }   ${ appState . getAuthenticatedUser ( ) ! . lastName } " ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . deviceToken  =  await  Utils . getStringFromPrefs ( CacheConst . pushToken ) ; 
    applePayInsertRequest . deviceToken  =  await  Utils . getStringFromPrefs ( CacheConst . pushToken ) ; 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -224,7 +230,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . projectID  =  habibWalletVM . selectedHospital ! . iD ! . toString ( ) ; 
    applePayInsertRequest . projectID  =  habibWalletVM . selectedHospital ! . iD ! . toString ( ) ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . serviceID  =  ServiceTypeEnum . appointmentPayment . getIdFromServiceEnum ( ) . toString ( ) ; 
    applePayInsertRequest . serviceID  =  ServiceTypeEnum . appointmentPayment . getIdFromServiceEnum ( ) . toString ( ) ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . channelID  =  3 ; 
    applePayInsertRequest . channelID  =  3 ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . patientID  =  appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) ; 
    applePayInsertRequest . patientID  =  habibWalletVM. fileNumber  . toString ( ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    applePayInsertRequest . patientTypeID  =  appState . getAuthenticatedUser ( ) ! . patientType ; 
    applePayInsertRequest . patientTypeID  =  appState . getAuthenticatedUser ( ) ! . patientType ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . patientOutSA  =  appState . getAuthenticatedUser ( ) ! . outSa ; 
    applePayInsertRequest . patientOutSA  =  appState . getAuthenticatedUser ( ) ! . outSa ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . appointmentDate  =  null ; 
    applePayInsertRequest . appointmentDate  =  null ; 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -237,7 +243,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . isSchedule  =  " 0 " ; 
    applePayInsertRequest . isSchedule  =  " 0 " ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . language  =  appState . isArabic ( )  ?  ' ar '  :  ' en ' ; 
    applePayInsertRequest . language  =  appState . isArabic ( )  ?  ' ar '  :  ' en ' ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . languageID  =  appState . isArabic ( )  ?  1  :  2 ; 
    applePayInsertRequest . languageID  =  appState . isArabic ( )  ?  1  :  2 ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . userName  =  appState . getAuthenticatedUser ( ) ! . patientId ; 
    applePayInsertRequest . userName  =  int . parse ( habibWalletVM . fileNumber ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    applePayInsertRequest . responseContinueURL  =  " http://hmg.com/Documents/success.html " ; 
    applePayInsertRequest . responseContinueURL  =  " http://hmg.com/Documents/success.html " ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . backClickUrl  =  " http://hmg.com/Documents/success.html " ; 
    applePayInsertRequest . backClickUrl  =  " http://hmg.com/Documents/success.html " ; 
 
			
		
	
		
		
			
				
					
					    applePayInsertRequest . paymentOption  =  " ApplePay " ; 
    applePayInsertRequest . paymentOption  =  " ApplePay " ; 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -330,6 +336,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					              } , 
              } , 
 
			
		
	
		
		
			
				
					
					              onError:  ( err )  { } ) ; 
              onError:  ( err )  { } ) ; 
 
			
		
	
		
		
			
				
					
					        }  else  { 
        }  else  { 
 
			
		
	
		
		
			
				
					
					          LoaderBottomSheet . hideLoader ( ) ; 
 
			
		
	
		
		
			
				
					
					          showCommonBottomSheetWithoutHeight ( 
          showCommonBottomSheetWithoutHeight ( 
 
			
		
	
		
		
			
				
					
					            context , 
            context , 
 
			
		
	
		
		
			
				
					
					            child:  Utils . getErrorWidget ( loadingText:  " Payment Failed! Please try again. " . needTranslation ) , 
            child:  Utils . getErrorWidget ( loadingText:  " Payment Failed! Please try again. " . needTranslation ) , 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -403,11 +410,11 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
			
		
	
		
		
			
				
					
					        " Advance Payment " , 
        " Advance Payment " , 
 
			
		
	
		
		
			
				
					
					        transID , 
        transID , 
 
			
		
	
		
		
			
				
					
					        habibWalletVM . selectedHospital ! . iD ! . toString ( ) , 
        habibWalletVM . selectedHospital ! . iD ! . toString ( ) , 
 
			
		
	
		
		
			
				
					
					        " CustID_ ${ appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) } @HMG.com " , 
        " CustID_ ${ habibWalletVM. fileNumber  . toString ( ) } @HMG.com " , 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					        selectedPaymentMethod , 
        selectedPaymentMethod , 
 
			
		
	
		
		
			
				
					
					        appState . getAuthenticatedUser ( ) ! . patientType . toString ( ) , 
        appState . getAuthenticatedUser ( ) ! . patientType . toString ( ) , 
 
			
		
	
		
		
			
				
					
					        " ${ appState . getAuthenticatedUser ( ) ! . firstName }   ${ appState . getAuthenticatedUser ( ) ! . lastName } " , 
        habibWalletVM . depositorName , 
 
			
				
				
			
		
	
		
		
			
				
					
					        appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) , 
        habibWalletVM. fileNumber  . toString ( ) , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					        appState . getAuthenticatedUser ( ) ! , 
        appState . getAuthenticatedUser ( ) ! , 
 
			
		
	
		
		
			
				
					
					        browser ! , 
        browser ! , 
 
			
		
	
		
		
			
				
					
					        false , 
        false ,