Few things to note while generating token:
- Please follow getting started documentation to generate a valid token.
- APIkey in the url query param should be same as the one used to generate xpayToken
- “resourcePath” sent in the xpaytoken has to be as per the documentation (eg: for keys à payments/flex/v1/keys).
- Payload sent in the request payload should exactly match along with spaces to the “requestBody” value used in xpaytoken.
Please let me know if thi sis helpful.