Hi everyone,
Just working with Assembly Payments and ran into the following error while following their documentation on Capturing a Credit Card:
The error is pretty vague, but it does seem that the credit card info they use in the documentation has expired. I tested with another credit card and it went through:
promisepay.createCardAccount(token, { full_name: "Bella Buyer", number: "4242424242424242", expiry_month: "12", expiry_year: "2021", cvv: "123" }, success, fail)
Naming Issue
You can also hit this if you’ve only provided a first name and no last name. e.g. John instead of John Doe.
You can work around this by entering the first name twice i.e. John John. Seems a little dodgy but it is the official recommendation from Assembly payments: https://docs.assemblypayments.com/en/articles/2037287-error-error-adding-card-if-this-error-persists-please-contact-our-support-team
Official card details
I was talking to support about another issue and they mentioned the following page: https://reference.assemblypayments.com/#credit-card-data