Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creditcard return Validation Failed #6

Closed
yousef-almadhoun opened this issue Oct 3, 2022 · 1 comment
Closed

creditcard return Validation Failed #6

yousef-almadhoun opened this issue Oct 3, 2022 · 1 comment

Comments

@yousef-almadhoun
Copy link

{
"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"
]
}
}

Screen Shot 2022-10-03 at 4 32 21 PM

@yousef-almadhoun
Copy link
Author

The solution is to send the credit card number and other information as integers rather than strings. Please wrap these values in quotation marks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant