From 291666d3e6ee3860171d867d03457b86aae45770 Mon Sep 17 00:00:00 2001 From: Timur Karimov Date: Wed, 23 Nov 2022 13:35:56 +0100 Subject: [PATCH] Adjust request parameter name for new card method generation --- client/checkout/blocks/generate-payment-method.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/checkout/blocks/generate-payment-method.js b/client/checkout/blocks/generate-payment-method.js index 56ab5b30be7..ad3083f1e67 100644 --- a/client/checkout/blocks/generate-payment-method.js +++ b/client/checkout/blocks/generate-payment-method.js @@ -40,7 +40,7 @@ const generatePaymentMethod = async ( api, elements, billingData ) => { type: 'success', meta: { paymentMethodData: { - paymentMethod: PAYMENT_METHOD_NAME_CARD, + payment_method: PAYMENT_METHOD_NAME_CARD, 'wcpay-payment-method': id, 'wcpay-fraud-prevention-token': fraudPreventionToken ?? '', },