Skip to content

Commit eb0810c

Browse files
authored
Use custom order IDs in create intent request (#3398)
* use 'order_id' from 'get_order_number' in stripe intent metadata
1 parent 849b8b5 commit eb0810c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Fix - Address QIT Security test errors.
2424
* Fix - Address QIT PHPStan test errors.
2525
* Update - Specify the JS Stripe API version as 2024-06-20.
26+
* Tweak - Use order ID from 'get_order_number' in stripe intent metadata.
2627
* Fix - Ensure payment tokens are detached from Stripe when a user is deleted, regardless of if the admin user has a Stripe account.
2728
* Fix - Address Klarna availability based on correct presentment currency rules.
2829

includes/payment-methods/class-wc-stripe-upe-payment-gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ public function get_metadata_from_order( $order ) {
17301730
'customer_name' => $name,
17311731
'customer_email' => $email,
17321732
'site_url' => esc_url( get_site_url() ),
1733-
'order_id' => $order->get_id(),
1733+
'order_id' => $order->get_order_number(),
17341734
'order_key' => $order->get_order_key(),
17351735
'payment_type' => $payment_type,
17361736
];

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ If you get stuck, you can ask for help in the Plugin Forum.
151151
* Fix - Address QIT Security test errors.
152152
* Fix - Address QIT PHPStan test errors.
153153
* Update - Specify the JS Stripe API version as 2024-06-20.
154+
* Tweak - Use order ID from 'get_order_number' in stripe intent metadata.
154155
* Fix - Ensure payment tokens are detached from Stripe when a user is deleted, regardless of if the admin user has a Stripe account.
155156
* Fix - Address Klarna availability based on correct presentment currency rules.
156157

0 commit comments

Comments
 (0)