Orders API v2: Capture COMPLITED, but payment DECLINED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Advance checkout in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Help with error saying API call is initiated is not allowed to vault the given source. in REST APIs
- Help Needed Persistent Result Code Errors (7, 126, 125) with Payflow Pro Account in Live Mode in Payflow
- PAYMENT_DENIED Error in REST APIs
- PAYMENT_DENIED Error (Status: 422) in PayPal Payments Standard