Skip to content

Commit a15ddf9

Browse files
committed
Include the 'return_url' parameter for setup_intents in the Legacy checkout experience (#3285)
* Include the 'return_url' parameter for setup_intents in Legacy * Add changelog entries
1 parent 6f0e7c9 commit a15ddf9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 8.5.2 - xxxx-xx-xx =
4+
* Fix - Prevent failures creating SetupIntents when using a non-saved payment method on the Legacy checkout experience.
45

56
= 8.5.1 - 2024-07-12 =
67
* Fix - Fixed fatal error caused by non-existent class.

includes/abstracts/abstract-wc-stripe-payment-gateway.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,7 @@ public function setup_intent( $order, $prepared_source ) {
17101710
$setup_intent = WC_Stripe_API::request(
17111711
[
17121712
'payment_method' => $prepared_source->source,
1713+
'return_url' => $this->get_stripe_return_url( $order ),
17131714
'customer' => $prepared_source->customer,
17141715
'confirm' => 'true',
17151716
],

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,6 @@ If you get stuck, you can ask for help in the Plugin Forum.
129129
== Changelog ==
130130

131131
= 8.5.2 - xxxx-xx-xx =
132+
* Fix - Prevent failures creating SetupIntents when using a non-saved payment method on the Legacy checkout experience.
132133

133134
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)