I'm trying to get apple pay working with the JS integration, I've got my payment cert, merchant cert, and merchant id in place. I'm able to verify the merchant, click the checkout button, get the pay sheet and then verify the transaction.
But when I authorize the payment, the only thing that gets passed to session.onpaymentauthorized is
There does not appear to be any payment property on the event.
I have tried re-creating a new merchantid/cert/processing cert, and the domain is verified.
Here's my boilerplate
But when I authorize the payment, the only thing that gets passed to session.onpaymentauthorized is
Code Block { "isTrusted": true }
There does not appear to be any payment property on the event.
I have tried re-creating a new merchantid/cert/processing cert, and the domain is verified.
Here's my boilerplate
Code Block onApplePayButtonClicked() { this.session = new ApplePaySession(1, testOrder); this.session.onvalidatemerchant = (function (e) { console.log(e); const validationURL = e.validationURL; this.apiClient.getApplepaySession({ url: validationURL }).then(x => { this.session.completeMerchantValidation(x); }) }).bind(this); this.session.onpaymentauthorized = (function (e) { console.log("onpaymentauthorized start"); console.log(JSON.stringify(e, null, 4)); this.apiClient.commitApplePay(e).then(() => { this.session.completePayment(ApplePaySession.STATUS_SUCCESS); console.log("onpaymentauthorized done"); }) }).bind(this); this.session.begin(); }