#StuMilne

1 messages · Page 1 of 1 (latest)

rare swanBOT
sleek rain
#

qq did you receive any webhook event when customer click X?

deep bear
#

No I didnt. I should also say that on the strip.confirmPayment I set redirect: "if_required"

sleek rain
#

I see. If you open browser console do you notice anything you can catch on the X close action?

deep bear
#

In the promiseChain I get a paymentIntent object back with a status of requires_source_action. No idea what that means

sleek rain
#

If you call https://stripe.com/docs/js/payment_intents/retrieve_payment_intent what do you see its content?

deep bear
#

I get the same object back with a status of requires_source_action

sleek rain
#

Could you paste the response here?

deep bear
#

Object

paymentIntent: Object

allowed_source_types: ["card", "afterpay_clearpay", "alipay", "klarna", "wechat_pay", "link"] (6)

amount: 1320

amount_details: {tip: {}}

automatic_payment_methods: {enabled: true}

canceled_at: null

cancellation_reason: null

capture_method: "automatic"

client_secret: "pi_3MeDZyLI6SOYl1s41tmwL616_secret_QMiyzdHNLlSFiO37mTXaYm0BL"

confirmation_method: "automatic"

created: 1677054094

currency: "gbp"

description: "US Letter Large Landscape Pastel Paints Book"

id: "pi_3MeDZyLI6SOYl1s41tmwL616"

last_payment_error: null

livemode: false

next_action: {type: "wechat_pay_display_qr_code", wechat_pay_display_qr_code: Object}

next_source_action: {type: "wechat_pay_display_qr_code", wechat_pay_display_qr_code: Object}

object: "payment_intent"

payment_method: "pm_1MeDa6LI6SOYl1s4DcwNeyqU"

payment_method_types: ["card", "afterpay_clearpay", "alipay", "klarna", "wechat_pay", "link"] (6)

processing: null

receipt_email: null

setup_future_usage: null

shipping: {address: Object, carrier: null, name: "Stuart Milne", phone: null, tracking_number: null}

source: null

status: "requires_source_action"

sleek rain
#

Ummm okie so it doesn't change anything from the status requires_action. You had requires_source_action because of the old API version 2018

#

I think when you have back a PI with requires_aciton you can assume it was attempted but cancelled mid-way, so the PI retains in that status

deep bear
#

ok cool