Open sean-hill opened 9 years ago
I ran into the same issue, I was able to work around it by not using the Payment type.
var payment = {
creditCard: new Types.CreditCard({
cardNumber: 41111111111111111,
expirationDate: '2012-01',
cardCode: 111
})
};
Thanks for the help, after modifying the code by removing the Payment type, I get the following error.
message: 'Authorize.net error: The \'AnetApi/xml/v1/schema/AnetApiSchema.xsd:cardNumber\' element is invalid - The value \'41111111111111110\' is invalid according to its datatype \'String\' - The actual length is greater than the MaxLength value.'
Lol these docs are so bad and the code is so bad. 41111111111111111
has one to many 1's. Authorize.net, @durango, or whoever is over this repo, could you please fix these issues? Thanks!
The
createCustomerPaymentProfile
example in the README returns this error.This is my code
How do I fix this issue?