Closed yousef-almadhoun closed 1 year ago
{ "amount": 1000.0, "source": { "type": "creditcard", "name": "yousef madhoun", "number": 4111111111111111, "cvc": 123, "month": 12, "year": 24 }, "callback_url": "https://example.com/orders", "description": "description" }
return
{ "type": "invalid_request_error", "message": "Validation Failed", "errors": { "company": [ "is not supported. Only Mastercard, Visa, MADA and American Express card numbers are supported" ] } }
The solution is to send the credit card number and other information as integers rather than strings. Please wrap these values in quotation marks.
{ "amount": 1000.0, "source": { "type": "creditcard", "name": "yousef madhoun", "number": 4111111111111111, "cvc": 123, "month": 12, "year": 24 }, "callback_url": "https://example.com/orders", "description": "description" }
return
{ "type": "invalid_request_error", "message": "Validation Failed", "errors": { "company": [ "is not supported. Only Mastercard, Visa, MADA and American Express card numbers are supported" ] } }