We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b92419 commit f9c6651Copy full SHA for f9c6651
client/checkout/api/index.js
@@ -227,10 +227,6 @@ export default class WCPayAPI {
227
getConfig( 'ajaxUrl' );
228
229
const isChangingPayment = getConfig( 'isChangingPayment' );
230
- console.log(
231
- 'Config source isChangingPayment:',
232
- isChangingPayment
233
- );
234
235
const ajaxCall = this.request( ajaxUrl, {
236
action: 'update_order_status',
@@ -242,7 +238,9 @@ export default class WCPayAPI {
242
238
should_save_payment_method: shouldSavePaymentMethod
243
239
? 'true'
244
240
: 'false',
245
- is_changing_payment: isChangingPayment,
241
+ is_changing_payment: isChangingPayment
+ ? 'true'
+ : 'false',
246
} );
247
248
return [ ajaxCall, result.error ];
0 commit comments