mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix payment with standard card button gateway + shipping callback
This commit is contained in:
parent
06d80325c9
commit
43f938f0a4
2 changed files with 2 additions and 5 deletions
|
@ -94,10 +94,7 @@ class Renderer {
|
||||||
return {
|
return {
|
||||||
style,
|
style,
|
||||||
...contextConfig,
|
...contextConfig,
|
||||||
onClick: (data, actions) => {
|
onClick: this.onSmartButtonClick,
|
||||||
venmoButtonClicked = data.fundingSource === 'venmo'
|
|
||||||
this.onSmartButtonClick
|
|
||||||
},
|
|
||||||
onInit: (data, actions) => {
|
onInit: (data, actions) => {
|
||||||
if (this.onSmartButtonsInit) {
|
if (this.onSmartButtonsInit) {
|
||||||
this.onSmartButtonsInit(data, actions);
|
this.onSmartButtonsInit(data, actions);
|
||||||
|
|
|
@ -1361,7 +1361,7 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
|
||||||
'integration-date' => PAYPAL_INTEGRATION_DATE,
|
'integration-date' => PAYPAL_INTEGRATION_DATE,
|
||||||
'components' => implode( ',', $this->components() ),
|
'components' => implode( ',', $this->components() ),
|
||||||
'vault' => ( $this->can_save_vault_token() || $this->subscription_helper->need_subscription_intent( $subscription_mode ) ) ? 'true' : 'false',
|
'vault' => ( $this->can_save_vault_token() || $this->subscription_helper->need_subscription_intent( $subscription_mode ) ) ? 'true' : 'false',
|
||||||
'commit' => 'false',
|
'commit' => in_array( $context, $this->pay_now_contexts, true ) ? 'true' : 'false',
|
||||||
'intent' => $intent,
|
'intent' => $intent,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue