impossible to create creditcard payment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Payments REST APIs
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Paypal Pay button generates GENERIC_ERROR in PayPal Payments Standard
- Payee account is invalid issue in REST APIs
- How to integrate the PayPal Connect feature with a SaaS platform? in SDKs
- Detect customer's payment method and adjust the price with a surcharge? in REST APIs
- How to implement volume-based subscription for webservice in REST APIs