mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge branch 'trunk' into PCP-3136-enable-shipping-callback-for-wc-subscriptions
This commit is contained in:
commit
1de6039d5b
9 changed files with 185 additions and 41 deletions
|
@ -94,10 +94,7 @@ class Renderer {
|
|||
return {
|
||||
style,
|
||||
...contextConfig,
|
||||
onClick: (data, actions) => {
|
||||
venmoButtonClicked = data.fundingSource === 'venmo'
|
||||
this.onSmartButtonClick
|
||||
},
|
||||
onClick: this.onSmartButtonClick,
|
||||
onInit: (data, actions) => {
|
||||
if (this.onSmartButtonsInit) {
|
||||
this.onSmartButtonsInit(data, actions);
|
||||
|
|
|
@ -1361,7 +1361,7 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages
|
|||
'integration-date' => PAYPAL_INTEGRATION_DATE,
|
||||
'components' => implode( ',', $this->components() ),
|
||||
'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,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue