#Wizard-capture-payment-intent

1 messages ยท Page 1 of 1 (latest)

knotty granite
#

Can you explain a bit more about what's happening? What do you mean by "outside platform"?

#

Do you have an example payment intent ID I can look at while you elaborate?

mental cobalt
#

by outside platform, I mean a proprietary software a client uses to capture payment information that is supposed to be passing on the captured payment info over to Stripe, but for some reason, it goes uncaptured in Stripe. I have the code of a particular instance if you would like to take a lookie

knotty granite
#

I still don't understand. What information is being passed to Stripe?

#

What is the proprietary software that's being used? Is it a 3rd party plugin? An app?

mental cobalt
#

the payment method

#

the name is called POW

#

it's not capturing payment_intent

knotty granite
#

the payment method
Yes, but is it raw PANs? Payment method IDs? What's actually being passed to Stripe? How is it being passed?

mental cobalt
#

via a payment method ID

#

it's getting passed from POW to Stripe

#

that;s the intention at least, but Apple Pay occasionally doesn't successfully pass it

#

does this help?

knotty granite
#

Not really. I don't know what POW is and I have nothing to go off of here. You can post the code if you want, in case it helps, but no guarantee

mental cobalt
knotty granite
#

Okay, so that's a payment method object. What are you trying to do with it?

mental cobalt
#

i'm trying to figure out why an uncaptured Payment Intent that we've processed in POW, remains uncaptured in Stripe

#

do you require to see something else? i apologize if this isn't what you require

olive coyote
#

Hi ๐Ÿ‘‹ I'm stepping in for my colleague @knotty granite as they have to go.

mental cobalt
#

hi Snufkin

olive coyote
#

So what is it you are trying to do with this payment intent?

mental cobalt
#

i'm trying to figure out why an uncaptured Payment Intent that we've processed in POW, remains uncaptured in Stripe

olive coyote
#

That's not code, it's a payment intent. the same one you shared above. I'm looking at it now.

#

So this is a Terminal request.

#

It requires that you both confirm and capture the payment

mental cobalt
#

so to resolve this the user would need to make sure an API request was created to capture the funds?

olive coyote
#

Well the /capture request should be made by the Android POS system being used to create the payments.

#

Which is actually done on the server but the Android app makes the request to the server to trigger the action (generally)

mental cobalt
#

I see, I will send this over to the client and see if this resolves the issue, I appreciate it Snufkin!

olive coyote
#

Happy to shed what light I can ๐Ÿ™‚

mental cobalt
#

I have one final question, which I think the same answer would apply for. do you mind assiting?

olive coyote
#

I'll offer what help I can. What's the question?

mental cobalt
#

{
"id": "pi_3LT7C5A8GiVuelrm1mK2MAN0",
"object": "payment_intent",
"last_payment_error": {
"charge": "ch_3LT7C5A8GiVuelrm1YBe3Lor",
"code": "card_declined",
"decline_code": "test_mode_live_card",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card was declined. Your request was in test mode, but used a non test (live) card. For a list of valid test cards, visit: https://stripe.com/docs/testing.",
"payment_method": {
"id": "pm_1LT7CkA8GiVuelrm996sA1Da",
"object": "payment_method",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
},
"card_present": {
},
"created": 1659631647,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card_present"
},
"type": "card_error"
},
"livemode": false,
"next_action": null,
"status": "requires_payment_method",
"amount": 4200,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "manual",
"charges": {
"object": "list",
"data": [
{
"id": "ch_3LT7C5A8GiVuelrm1YBe3Lor",
"object": "charge",
"amount": 4200,
"amount_captured": 0,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"authorization_code": "123456",
"balance_transaction": null,
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
},
"calculated_statement_descriptor": "RESTORE.COM",
"captured": false,
"created": 1659631647,
"currency": "usd",
"customer": "cus_MBUAZJxCM6lfsV",
"description": null,
"destination": null,
"dis

Learn more about error codes and how to resolve them.

#

json looks incomplete, but was wondering if same answer applies to this too?

olive coyote
#

This is not very helpful. Could you just describe in words what you expect to see and what is different?

#

Also the error code tells you exactly what is going on here

#

Your card was declined. Your request was in test mode, but used a non test (live) card. For a list of valid test cards, visit

mental cobalt
#

I see I didn't catch that

#

thank you very much! that's all i require!