Merge branch 'trunk' into PCP-3136-enable-shipping-callback-for-wc-subscriptions

This commit is contained in:
Narek Zakarian 2024-05-22 15:58:35 +04:00
commit 1de6039d5b
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
9 changed files with 185 additions and 41 deletions

View file

@ -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);