How to decode Adyen onPaymentCompleted sessionData?

Viewed 296
1 Answers

You will not be able to decode the sessionData from the front end. It is designed that way for security.

You can, however, find the reference id by going to the API Logs section of your customer Area.

Developers -> API Logs

There you can select your call and you will be able to see the reference in the response body.

You will also receive that reference Id when you perfor your session call in your backend. For example in Java (here).

var response = checkout.sessions(checkoutSession);

The response here contains the reference.

enter image description here

Related