paypal.ApplePay().confirmOrder() returns applepay_payment_error.

DPGibson
Contributor
Contributor

Hello,

The problem:

I am adding the PayPal Apple Pay integration code to our website, so we can receive payments via ApplePay.   I am receiving an error calling the SDK function:  paypal.confirmOrder(),  after a successful onvalidatemerchant() call. When I make the confirmOrder() call an error is thrown into my catch block. The error is an object type applepay_payment_error .

 

This error type, as far I can tell, is not documented in the JavaScript SDK in the developer documents.  It does not offer any clues as to what is wrong.

 

Question:

Can you shed any light on what may cause this function to fail with this error?  I have been working on this for days with no success. 

 

More info:

I am passing a Paypal order ID that I have just successfully created prior to this call. I am passing the event.payment.token I received from the event callback for session.onpaymentauthorized  and I am passing event.payment.billingContact as the billing contact also from the event object passed to my callback function. All three parameters appear to be initialized with content.

Login to Me Too
1 REPLY 1

jackfinaly
Contributor
Contributor

Have you solved it? I have the same problem too

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.