Orders API v2: Capture COMPLITED, but payment DECLINED

Mastir
Contributor
Contributor

I`ve been testing our ACDC integration in sandbox using this document https://developer.paypal.com/tools/sandbox/card-testing/#link-rejectiontriggers and had a strange result:

{        "id": "8EL31122E2728001L",        "intent": "CAPTURE",        "status": "COMPLETED",        "payment_source": {            "card": {                "last_digits": "[removed]",                "brand": "AMEX",                "type": "CREDIT"            }        },        "purchase_units": [            {                "reference_id": "873765",                "amount": {                    "currency_code": "USD",                    "value": "15184.68",                },                "payments": {                    "captures": [                        {                            "id": "5TW18174U3504103U",                            "status": "DECLINED",                            "amount": {                                "currency_code": "USD",                                "value": "15184.68"                            },                            "final_capture": true,                            "seller_protection": {                                "status": "NOT_ELIGIBLE"                            },                            "seller_receivable_breakdown": {                                "gross_amount": {                                    "currency_code": "USD",                                    "value": "15184.68"                                },                                "paypal_fee": {                                    "currency_code": "USD",                                    "value": "393.77"                                },                                "net_amount": {                                    "currency_code": "USD",                                    "value": "14790.91"                                }                          ...

 so i see COMPLETED capture, but DECLINED capture. I`ve never seen statuses other then PENDING in sandbox and COMPLETED in production. What shuld i do with this statuses? I`m pretty sure we shuldn`t accept DECLINED capture as success payment , but is it fail? Shuld we display error to customer? Is there another possible values and what shuld i do with em?

Login to Me Too
1 REPLY 1

Jimbo86
New Community Member

Im glad nobody has replied to this because it means its not obvious 😂 same happened to me and it doesn't make sense that a capture's status would be COMPLETE when payment instrument is DECLINED. Happens with Google Pay.

 

@Mastir did you ever discover supporting documentation for this behaviour ?

Login to Me Too

Haven't Found your Answer?

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