File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed
src/Gateways/PaymentMethods Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 134134 } ,
135135 instantiate_payment_request ( ) {
136136 const paymentRequest = monei . Bizum ( {
137- accountId : wc_bizum_params . account_id ,
138- sessionId : wc_bizum_params . session_id ,
137+ accountId : wc_bizum_params . accountId ,
138+ sessionId : wc_bizum_params . sessionId ,
139139 amount : parseInt ( wc_bizum_form . total ) ,
140140 currency : wc_bizum_params . currency ,
141- style : wc_bizum_params . bizum_style || { } ,
141+ style : wc_bizum_params . bizumStyle || { } ,
142142 onSubmit ( result ) {
143143 $ ( '#place_order' ) . prop ( 'disabled' , false ) ;
144144 wc_bizum_form . request_token_handler ( result . token ) ;
Original file line number Diff line number Diff line change 134134 } ,
135135 instantiate_payment_request ( ) {
136136 const paymentRequest = monei . PayPal ( {
137- accountId : wc_paypal_params . account_id ,
138- sessionId : wc_paypal_params . session_id ,
137+ accountId : wc_paypal_params . accountId ,
138+ sessionId : wc_paypal_params . sessionId ,
139139 amount : parseInt ( wc_paypal_form . total ) ,
140140 currency : wc_paypal_params . currency ,
141141 language : wc_paypal_params . language ,
142- style : wc_paypal_params . paypal_style || { } ,
142+ style : wc_paypal_params . paypalStyle || { } ,
143143 onSubmit ( result ) {
144144 $ ( '#place_order' ) . prop ( 'disabled' , false ) ;
145145 wc_paypal_form . request_token_handler ( result . token ) ;
Original file line number Diff line number Diff line change @@ -238,12 +238,12 @@ public function bizum_scripts() {
238238 'woocommerce_monei-bizum ' ,
239239 'wc_bizum_params ' ,
240240 array (
241- 'account_id ' => $ this ->getAccountId (),
242- 'session_id ' => WC ()->session ->get_customer_id (),
243- 'total ' => monei_price_format ( $ total ),
244- 'currency ' => get_woocommerce_currency (),
245- 'language ' => locale_iso_639_1_code (),
246- 'bizum_style ' => json_decode ( $ bizum_style ),
241+ 'accountId ' => $ this ->getAccountId (),
242+ 'sessionId ' => WC ()->session ->get_customer_id (),
243+ 'total ' => monei_price_format ( $ total ),
244+ 'currency ' => get_woocommerce_currency (),
245+ 'language ' => locale_iso_639_1_code (),
246+ 'bizumStyle ' => json_decode ( $ bizum_style ),
247247 )
248248 );
249249 }
Original file line number Diff line number Diff line change @@ -242,12 +242,12 @@ public function paypal_scripts() {
242242 'woocommerce_monei-paypal ' ,
243243 'wc_paypal_params ' ,
244244 array (
245- 'account_id ' => $ this ->getAccountId (),
246- 'session_id ' => WC ()->session ->get_customer_id (),
247- 'total ' => monei_price_format ( $ total ),
248- 'currency ' => get_woocommerce_currency (),
249- 'language ' => locale_iso_639_1_code (),
250- 'paypal_style ' => json_decode ( $ paypal_style ),
245+ 'accountId ' => $ this ->getAccountId (),
246+ 'sessionId ' => WC ()->session ->get_customer_id (),
247+ 'total ' => monei_price_format ( $ total ),
248+ 'currency ' => get_woocommerce_currency (),
249+ 'language ' => locale_iso_639_1_code (),
250+ 'paypalStyle ' => json_decode ( $ paypal_style ),
251251 )
252252 );
253253 }
You can’t perform that action at this time.
0 commit comments