#saumil
1 messages · Page 1 of 1 (latest)
ok
sorry for the delay
I'm not sure I understand
would you mind elaborating more?
sure
i am creating subscription payment payment done ajax response 200 but confirm page and ajax return error and page redirect to failed page, but i am checking my stripe account payment subscription complited
the error is
{
"error": {
"code": "payment_intent_unexpected_state",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-unexpected-state",
"message": "You cannot confirm this PaymentIntent because it has already succeeded after being previously confirmed.",
"payment_intent": {
"id": "pi_3MqZK6EWXGtQz5IV1KWSbIOf",
"object": "payment_intent",
"amount": 1000,
"amount_details": {
"tip": {
}
},
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3MqZK6EWXGtQz5IV1KWSbIOf_secret_caq9stx7ReUp3xeFeegRGBsMW",
"confirmation_method": "automatic",
"created": 1679997614,
"currency": "aud",
"description": "Subscription creation",
"last_payment_error": null,
"livemode": false,
"next_action": null,
"payment_method": null,
"payment_method_types": [
"au_becs_debit",
"card"
],
"processing": null,
"receipt_email": null,
"setup_future_usage": "off_session",
"shipping": null,
"source": "card_1MqZK4EWXGtQz5IV9qJzzGDT",
"status": "succeeded"
},
"request_log_url": "https://dashboard.stripe.com/test/logs/req_Epg3GZpywGcTka?t=1679997616",
"type": "invalid_request_error"
}
}
Hey! Taking over for my colleague. Let me catch up.
please suggest me what is the problem
You are trying to confirm a PaymentIntent that is already completed