Skip to content

Commit

Permalink
Ticket #3040 - Stripe.js must be loaded from js.stripe.com
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Dec 10, 2020
1 parent 5d6336b commit 0fd3356
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/boonex/payment/classes/BxPaymentProviderStripeV3.php
Expand Up @@ -18,7 +18,6 @@ function __construct($aConfig)
parent::__construct($aConfig);

$this->_aIncludeJs = array(
'https://js.stripe.com/v3/',
'stripe_v3.js'
);
}
Expand Down Expand Up @@ -392,15 +391,18 @@ protected function _getButtonJs($sType, $iClientId, $iVendorId, $aParams = array
break;
}

return array($this->_oModule->_oTemplate->getJsCode($this->_sName, array_merge(array(
$sJsCode = $this->_oModule->_oTemplate->_wrapInTagJs('https://js.stripe.com/v3/');
$sJsCode .= $this->_oModule->_oTemplate->getJsCode($this->_sName, array_merge(array(
'js_object' => $sJsObject,
'sProvider' => $this->_sName,
'sPublicKey' => !empty($sPublicKey) ? $sPublicKey : $this->_getPublicKey(),
'sVendorName' => '',
'sVendorCurrency' => '',
'sVendorIcon' => '',
'sClientEmail' => $sClientEmail,
), $aParams)), $sJsMethod);
), $aParams));

return array($sJsCode, $sJsMethod);
}
}

Expand Down

0 comments on commit 0fd3356

Please sign in to comment.