Search code examples
payment-gatewaycredit-card

Getting credit card type not allowed error in Paytrace using protect.js


I followed Client-Side Encryption steps using protect.js in Paytrace API Documentation. When enter test credit card which given by paytrace website, i am getting error message:

description: "credit card type not allowed" responseCode: "400"


Solution

  • Check your token. In my case I was passing token as query string so I had to encode and decode.