'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 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user19139505