@ -189,7 +189,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 +214,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 +224,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 +237,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 +330,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 +404,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 ,