Skip to content
Advertisement

Tag: amazon-pay

How to CompleteCheckoutSession for PHP Amazon Pay SDK?

I’ve follow the instruction how to integrate Amazon V2 for PHP But I could not find any section how can I implement the Complete Checkout Session function in order to get “chargeID”. Here is what I’ve implement But I got the error message like this {“reasonCode”:”InvalidCheckoutSessionStatus”,”message”:”You tried to call an operation on a Checkout Session that is in a state

Amazon Pay SDK InvalidSignatureError

I’m integrating Amazon Pay php SDK from documentation, but getting this error. Here’s my php implementation code: Here’s JS implementation code for generating Amazon Pay button. Answer Couple of problems with the code, mainly that you aren’t passing the payload and signature to the front-end correctly. For the payload, you’re using jsonResult[‘checkoutSession’], while it should be jsonResult[‘payloadSign’]. This doesn’t contain

Advertisement