Hi @zylvie ,
Thank you for providing the updated information. Your sandbox account and app are setup for Advanced Debit and Credit Card Processing. The issue is the api calls that you are making.
For your reference here is the integration documentation on Advanced Debit and Credit Cards, including a code example:
https://developer.paypal.com/studio/checkout/advanced/integrate
Here is a sample app with Advanced Debit and Credit Card integration:
https://github.com/paypal-examples/docs-examples
Here is a listing of Test Cards that you can use:
https://developer.paypal.com/api/rest/sandbox/card-testing/#link-creditcardgeneratorfortesting
The Create Order api call and the capture call is missing the payment source. If the order is created without the payment source then the capture call needs the payment source details.
If you are testing in postman your capture call needs this:
{
"payment_source": {
"card": {
"description": "Testing Save Payment Method",
"number": "{{Card Number}}",
"expiry": "2028-07",
"name": "John Doe",
"billing_address": {
"address_line_1": "123 W Main St",
"address_line_2": "Building 22",
"admin_area_1": "CA",
"admin_area_2": "San Jose",
"postal_code": "95131-1000",
"country_code": "US"
},
Thank you,
Jennifer
MTS
PayPal
... View more