Skip to content

Commit 8a21467

Browse files
committed
get config global var more precicely within the confirmation Promise
1 parent 3374543 commit 8a21467

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

assets/css/admin.rtl.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
background-image: url( '../images/cards/visa.svg' );
6868
}
6969

70+
.payment-method__brand--alipay {
71+
background-image: url( '../images/payment-methods/alipay-logo.svg' );
72+
}
73+
7074
.payment-method__brand--cartes_bancaires {
7175
background-image: url( '../images/cards/cartes_bancaires.svg' );
7276
}
@@ -135,6 +139,14 @@
135139
background-image: url( '../images/payment-methods/klarna.svg' );
136140
}
137141

142+
.payment-method__brand--grabpay {
143+
background-image: url( '../images/payment-methods/grabpay.svg' );
144+
}
145+
146+
.payment-method__brand--wechat_pay {
147+
background-image: url( '../images/payment-methods/wechat-pay.svg' );
148+
}
149+
138150
.wc_gateways tr[data-gateway_id='woocommerce_payments'] .payment-method__icon {
139151
border: 1px solid #ddd;
140152
border-radius: 2px;

client/checkout/api/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ export default class WCPayAPI {
207207
} );
208208
};
209209

210-
const isChangingPayment = getConfig( 'isChangingPayment' );
211-
212210
return (
213211
confirmPaymentOrSetup()
214212
// ToDo: Switch to an async function once it works with webpack.
@@ -228,6 +226,8 @@ export default class WCPayAPI {
228226
getExpressCheckoutConfig( 'ajax_url' ) ??
229227
getConfig( 'ajaxUrl' );
230228

229+
const isChangingPayment = getConfig( 'isChangingPayment' );
230+
231231
const ajaxCall = this.request( ajaxUrl, {
232232
action: 'update_order_status',
233233
order_id: orderId,

0 commit comments

Comments
 (0)