Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.0
-
Fix Version/s: 5.0.3
-
Component/s: None
-
Labels:None
Description
We've received several reports along these lines "Stripe Payments is failing when paying on the order form, but it works when paying through the client interface." It is possible that the order form error does not occur with a saved payment account.
{
"error": {
"code": "payment_intent_unexpected_state",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-unexpected-state",
"message": "This PaymentIntent could not be captured because it has a status of requires_confirmation. Only a PaymentIntent with one of the following statuses may be captured: requires_capture.",
—
UPDATE
This is caused by a jquery event which is not being set properly. To fix edit stripe_payments/views/default/payment_confirmation.pdt starting at line 10 and change:
$(document).ready(function() {
// Handle form submission.
$('#stripe-error-box').closest('form').one('submit', submitPayment);
});
To
// Handle form submission.
$('#stripe-error-box').closest('form').one('submit', submitPayment);
Activity
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Sprint | 5.0.3 Sprint 1 [ 130 ] |
Rank | Ranked lower |
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 2 hours [ 7200 ] | |
Worklog Id | 14740 [ 14740 ] |
Assignee | Jonathan Reissmueller [ jonathan ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Description |
We've received several reports along these lines "Stripe Payments is failing when paying on the order form, but it works when paying through the client interface." It is possible that the order form error does not occur with a saved payment account.
{quote} { "error": { "code": "payment_intent_unexpected_state", "doc_url": "https://stripe.com/docs/error-codes/payment-intent-unexpected-state", "message": "This PaymentIntent could not be captured because it has a status of requires_confirmation. Only a PaymentIntent with one of the following statuses may be captured: requires_capture.", {quote} We have not gotten the chance to reproduce this yet, but let's look into it. |
We've received several reports along these lines "Stripe Payments is failing when paying on the order form, but it works when paying through the client interface." It is possible that the order form error does not occur with a saved payment account.
{quote} { "error": { "code": "payment_intent_unexpected_state", "doc_url": "https://stripe.com/docs/error-codes/payment-intent-unexpected-state", "message": "This PaymentIntent could not be captured because it has a status of requires_confirmation. Only a PaymentIntent with one of the following statuses may be captured: requires_capture.", {quote} --- UPDATE This is caused by a jquery event which is not being set properly. To fix edit stripe_payments/views/default/payment_confirmation.pdt starting at line 10 and change: {code:java} $(document).ready(function() { // Handle form submission. $('#stripe-error-box').closest('form').one('submit', submitPayment); }); {code} To {code:java} // Handle form submission. $('#stripe-error-box').closest('form').one('submit', submitPayment); {code} |
Time Spent | 2 hours [ 7200 ] | 3 hours, 3 minutes [ 10980 ] |
Worklog Id | 14741 [ 14741 ] |
Status | In Review [ 5 ] | Closed [ 6 ] |
For those applying the fix manually, the full path is:
/components/gateway/merchant/stripe_payments/views/default/payment_confirmation.pdt