Skip to content

Commit bd674e1

Browse files
authored
Use hardcoded names outside module (#3702)
* use hardcoded names * add changelog
1 parent 1533f16 commit bd674e1

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

assets/js/stripe.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
/* global wc_stripe_params, Stripe */
22

3-
import {
4-
PAYMENT_METHOD_BOLETO,
5-
PAYMENT_METHOD_OXXO,
6-
PAYMENT_METHOD_SEPA,
7-
} from 'wcstripe/stripe-utils/constants';
8-
93
jQuery( function($ ) {
104
'use strict';
115

@@ -544,7 +538,7 @@ jQuery( function($ ) {
544538
if ( wc_stripe_form.isSepaChosen() ) {
545539
extra_details.currency = $( '#stripe-sepa_debit-payment-data' ).data( 'currency' );
546540
extra_details.mandate = { notification_method: wc_stripe_params.sepa_mandate_notification };
547-
extra_details.type = PAYMENT_METHOD_SEPA;
541+
extra_details.type = 'sepa_debit';
548542

549543
return stripe.createSource( iban, extra_details ).then( wc_stripe_form.sourceResponse );
550544
}
@@ -701,7 +695,7 @@ jQuery( function($ ) {
701695
* After the customer closes the modal proceeds with checkout normally
702696
*/
703697
handleBoleto: function () {
704-
wc_stripe_form.executeCheckout( PAYMENT_METHOD_BOLETO, function ( checkout_response ) {
698+
wc_stripe_form.executeCheckout( 'boleto', function ( checkout_response ) {
705699
stripe.confirmBoletoPayment(
706700
checkout_response.client_secret,
707701
checkout_response.confirm_payment_data
@@ -785,7 +779,7 @@ jQuery( function($ ) {
785779
* After the customer closes the modal proceeds with checkout normally
786780
*/
787781
handleOxxo: function () {
788-
wc_stripe_form.executeCheckout( PAYMENT_METHOD_OXXO, function ( checkout_response ) {
782+
wc_stripe_form.executeCheckout( 'oxxo', function ( checkout_response ) {
789783
stripe.confirmOxxoPayment(
790784
checkout_response.client_secret,
791785
checkout_response.confirm_payment_data

changelog.txt

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

33
= 9.1.1 - xxxx-xx-xx =
44
* Fix - Payment request button fails to display when the legacy checkout experience is enabled.
5+
* Fix - Resolves the payment element loading issue in the legacy checkout experience.
56

67
= 9.1.0 - 2025-01-09 =
78
* Fix - Fixes the new checkout experience not being enabled by default due to conflict with a migration.

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
112112

113113
= 9.1.1 - xxxx-xx-xx =
114114
* Fix - Payment request button fails to display when the legacy checkout experience is enabled.
115+
* Fix - Resolves the payment element loading issue in the legacy checkout experience.
115116

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

0 commit comments

Comments
 (0)