I am trying to create Apple-pay from https://ionicframework.com/docs/native/apple-pay/
the following two error I found :
- completeTransactionWithMerchant not found .
please let me know how can I solve?
- when I removed following lines from above URL doc it’s working and create a build in iPhone 6s simulator
removed code :
const transactionStatus = await completeTransactionWithMerchant(applePayTransaction);
await this.applePay.completeLastTransaction(transactionStatus);
Added code : console.log(applePayTransaction) ; //for debug
but during runtime
I got following error:-
2018-12-31 17:28:41.000054+0530 iosapp[2236:123887] ApplePay canMakePayments == true
2018-12-31 17:28:41.000675+0530 iosapp[2236:123887] ApplePay request == <PKPaymentRequest: 0x7fbdff53ad50>
2018-12-31 17:28:41.128533+0530 iosapp[2236:150690] Failed to present in-app payment interface: Error Domain=PKPassKitErrorDomain Code=-1 “Cannot Present Remote Interface of type: PDRemoteInterfaceTypeInAppPayment for the following reason(s): Interface is currently active” UserInfo={NSLocalizedDescription=Cannot Present Remote Interface of type: PDRemoteInterfaceTypeInAppPayment for the following reason(s): Interface is currently active}
2018-12-31 17:28:41.129514+0530 iosapp[2236:123887] Connection to remote alert view service failed
2018-12-31 17:29:17.450294+0530 iosapp[2236:151310] Failed to present in-app payment interface: Error Domain=PKPassKitErrorDomain Code=-1 “Payment interface not available” UserInfo={NSLocalizedDescription=Payment interface not available}
please guide me for ionic 4