@ -189,7 +189,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
		
	
		
			
				                        if  ( Utils . havePrivilege ( 103 ) )  { 
 
		
	
		
			
				                          startApplePay ( ) ; 
 
		
	
		
			
				                        }  else  { 
 
		
	
		
			
				                          openPaymentURL ( " applep ay" ) ; 
 
		
	
		
			
				                          openPaymentURL ( " AppleP ay" ) ; 
 
		
	
		
			
				                        } 
 
		
	
		
			
				                      } ) 
 
		
	
		
			
				                    :  SizedBox ( height:  12. h ) , 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -214,8 +214,8 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
		
	
		
			
				    applePayInsertRequest . clinicID  =  0 ; 
 
		
	
		
			
				
 
		
	
		
			
				    applePayInsertRequest . currency  =  appState . getAuthenticatedUser ( ) ! . outSa !  = =  0  ?  " SAR "  :  " AED " ; 
 
		
	
		
			
				    applePayInsertRequest . customerEmail  =  " CustID_ ${ appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) } @HMG.com " ; 
 
		
	
		
			
				    applePayInsertRequest . customerID  =  appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) ; 
 
		
	
		
			
				    applePayInsertRequest . customerEmail  =  " CustID_ ${ habibWalletVM. fileNumber  . toString ( ) } @HMG.com " ; 
 
		
	
		
			
				    applePayInsertRequest . customerID  =  habibWalletVM. fileNumber  . toString ( ) ; 
 
		
	
		
			
				    applePayInsertRequest . customerName  =  " ${ appState . getAuthenticatedUser ( ) ! . firstName }   ${ appState . getAuthenticatedUser ( ) ! . lastName } " ; 
 
		
	
		
			
				
 
		
	
		
			
				    applePayInsertRequest . deviceToken  =  await  Utils . getStringFromPrefs ( CacheConst . pushToken ) ; 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -224,7 +224,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
		
	
		
			
				    applePayInsertRequest . projectID  =  habibWalletVM . selectedHospital ! . iD ! . toString ( ) ; 
 
		
	
		
			
				    applePayInsertRequest . serviceID  =  ServiceTypeEnum . appointmentPayment . getIdFromServiceEnum ( ) . toString ( ) ; 
 
		
	
		
			
				    applePayInsertRequest . channelID  =  3 ; 
 
		
	
		
			
				    applePayInsertRequest . patientID  =  appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) ; 
 
		
	
		
			
				    applePayInsertRequest . patientID  =  habibWalletVM. fileNumber  . toString ( ) ; 
 
		
	
		
			
				    applePayInsertRequest . patientTypeID  =  appState . getAuthenticatedUser ( ) ! . patientType ; 
 
		
	
		
			
				    applePayInsertRequest . patientOutSA  =  appState . getAuthenticatedUser ( ) ! . outSa ; 
 
		
	
		
			
				    applePayInsertRequest . appointmentDate  =  null ; 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -237,7 +237,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
		
	
		
			
				    applePayInsertRequest . isSchedule  =  " 0 " ; 
 
		
	
		
			
				    applePayInsertRequest . language  =  appState . isArabic ( )  ?  ' ar '  :  ' en ' ; 
 
		
	
		
			
				    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 . backClickUrl  =  " http://hmg.com/Documents/success.html " ; 
 
		
	
		
			
				    applePayInsertRequest . paymentOption  =  " ApplePay " ; 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -330,6 +330,7 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
		
	
		
			
				              } , 
 
		
	
		
			
				              onError:  ( err )  { } ) ; 
 
		
	
		
			
				        }  else  { 
 
		
	
		
			
				          LoaderBottomSheet . hideLoader ( ) ; 
 
		
	
		
			
				          showCommonBottomSheetWithoutHeight ( 
 
		
	
		
			
				            context , 
 
		
	
		
			
				            child:  Utils . getErrorWidget ( loadingText:  " Payment Failed! Please try again. " . needTranslation ) , 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -403,11 +404,11 @@ class _WalletPaymentConfirmPageState extends State<WalletPaymentConfirmPage> {
 
		
	
		
			
				        " Advance Payment " , 
 
		
	
		
			
				        transID , 
 
		
	
		
			
				        habibWalletVM . selectedHospital ! . iD ! . toString ( ) , 
 
		
	
		
			
				        " CustID_ ${ appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) } @HMG.com " , 
 
		
	
		
			
				        " CustID_ ${ habibWalletVM. fileNumber  . toString ( ) } @HMG.com " , 
 
		
	
		
			
				        selectedPaymentMethod , 
 
		
	
		
			
				        appState . getAuthenticatedUser ( ) ! . patientType . toString ( ) , 
 
		
	
		
			
				        " ${ appState . getAuthenticatedUser ( ) ! . firstName }   ${ appState . getAuthenticatedUser ( ) ! . lastName } " , 
 
		
	
		
			
				        appState. getAuthenticatedUser ( ) ! . patientId  . toString ( ) , 
 
		
	
		
			
				        habibWalletVM . depositorName , 
 
		
	
		
			
				        habibWalletVM. fileNumber  . toString ( ) , 
 
		
	
		
			
				        appState . getAuthenticatedUser ( ) ! , 
 
		
	
		
			
				        browser ! , 
 
		
	
		
			
				        false ,