Hello, I've got a problem in the integration of the REST API. I have a shop and want to first authorize and then in another step capture a payment. The steps are: 1) Create order 2) Authorize order 3) Capture order The first step is successful. But I've got an issue in the last two. For authorize and capture, the return status of the response is 200 with the status "PAYER_ACTION_REUQIRED". In the documentation, there is information about a redrection to the HATEOAS link, but I can't do this technically in this step. Is there any possibility to finish the order? Here are the bodies for my requests: Create order: {
"purchase_units": [
{
"amount": {
"breakdown": {
"item_total": {
"value": 45.83,
"currency_code": "EUR"
}
},
"value": 45.83,
"currency_code": "EUR"
},
"reference-id": "ap04iuif4j9aq82ovtjbfmq2tc4"
}
],
"payment_source": {
"paypal": {
"experience_context": {
"user_action": "PAY_NOW",
"landing_page": "LOGIN",
"return_url": "NOT INTERESTING FOR THE POST",
"payment_method_preference": "IMMEDIATE_PAYMENT_REQUIRED",
"brand_name": "EXAMPLE INC",
"locale": "de-DE",
"cancel_url": "http://localhost"
}
}
},
"intent": "AUTHORIZE"
} Authorize order: {
"payment_source": {
"paypal": {
"experience_context": {
"user_action": "PAY_NOW",
"landing_page": "LOGIN",
"return_url": "NOT INTERESTING FOR THE POST",
"payment_method_preference": "IMMEDIATE_PAYMENT_REQUIRED",
"locale": "de-DE",
"cancel_url": "http://localhost",
"shipping_preference": "NO_SHIPPING"
}
}
}
} Response: {
"id": "41053874NS5614918",
"status": "PAYER_ACTION_REQUIRED",
"payment_source": {
"paypal": {}
},
"links": [
{
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/41053874NS5614918",
"rel": "self",
"method": "GET"
},
{
"href": "https://www.sandbox.paypal.com/checkoutnow?token=41053874NS5614918",
"rel": "payer-action",
"method": "GET"
}
]
} Capture order: {
"payment_source": {
"paypal": {
"experience_context": {
"user_action": "PAY_NOW",
"landing_page": "LOGIN",
"return_url": "NOT INTERESTING FOR THE POST",
"payment_method_preference": "IMMEDIATE_PAYMENT_REQUIRED",
"locale": "de-DE",
"cancel_url": "http://localhost",
"shipping_preference": "NO_SHIPPING"
}
}
}
} Response: {
"id": "41053874NS5614918",
"status": "PAYER_ACTION_REQUIRED",
"payment_source": {
"paypal": {}
},
"links": [
{
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/41053874NS5614918",
"rel": "self",
"method": "GET"
},
{
"href": "https://www.sandbox.paypal.com/checkoutnow?token=41053874NS5614918",
"rel": "payer-action",
"method": "GET"
}
]
} Could you please help me? Thank you! Best regards Basti
... View more