impossible to create creditcard payment

rohrspatz
Contributor
Contributor

Hello everybody,

 

I switched from api v1 to v2, transactions work just fine.

When I try to set up a creditcard, direct payment it does not really work, neither throws any errors and directs me to "normal" transaction checkoutflow.

Here is my send json via paypalcheckoutsdk and REST API

 

{
"body": {
"application_context": {
"brand_name": "MYCOMPANY",
"cancel_url": "http://MYURL_GREATURL,
"payment_method": {
"payer_selected": "PAYPAL"
},
"payment_source": {
"card": {}
},
"return_url": "http://MYURL_GREATURL",
"user_action": "PAY_NOW"
},
"card": {},
"intent": "CAPTURE",
"payer": {},
"purchase_units": [
{
"amount": {
"breakdown": {
"discount": {
"currency_code": "EUR",
"value": "0.00"
},
"item_total": {
"currency_code": "EUR",
"value": "16.00"
},
"shipping": {
"currency_code": "EUR",
"value": "3.00"
}
},
"currency_code": "EUR",
"value": "19.00"
},
"custom": "",
"description": "This is the payment transaction description.",
"items": [
{
"name": "ITEM 1",
"quantity": 1,
"unit_amount": {
"currency_code": "EUR",
"value": "16.00"
}
}
]
}
]
},
"headers": {
"Content-Type": "application/json",
"Prefer": "return=representation"
},
"path": "/v2/checkout/orders?",
"verb": "POST"
}

 

 

Does not matter if I switch user_action to CONTINUE or PAY_NOW

Any hints welcome how to achieve direct creditcard payments via

 

- python

- paypalcheckoutSDK

- paypal Plus

 

Guest checkout cannot be used for creditcard paymetns as told by paypal support. They only allow guest checkout randomly as far as I can tell.

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.