Skip to content

Commit

Permalink
update braintree js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Birch committed Sep 12, 2019
1 parent aa626dc commit ead44e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/assetbundles/dropinui/dist/css/DropinUi.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @package CommerceBraintree
* @since 1.0.0
*/

/*
#Cardinal-Modal {
top: 50% !important;
left: 50% !important;
Expand All @@ -20,3 +20,4 @@
#Cardinal-Modal iframe {
width: 390px !important;
}
*/
6 changes: 3 additions & 3 deletions src/gateways/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ private function getCpPaymentFormHtml(array $params = [])
$previousMode = $view->getTemplateMode();
$view->setTemplateMode(View::TEMPLATE_MODE_CP);

$view->registerJsFile('https://js.braintreegateway.com/web/3.50.1/js/client.min.js');
$view->registerJsFile('https://js.braintreegateway.com/web/3.50.1/js/hosted-fields.min.js');
$view->registerJsFile('https://js.braintreegateway.com/web/3.52.0/js/client.min.js');
$view->registerJsFile('https://js.braintreegateway.com/web/3.52.0/js/hosted-fields.min.js');
$view->registerAssetBundle(HostedFieldsAsset::class);
$html = $view->renderTemplate('commerce-braintree/paymentForms/hosted-fields', $params);

Expand Down Expand Up @@ -714,7 +714,7 @@ private function getSitePaymentFormHtml(array $params = [])
$previousMode = $view->getTemplateMode();
$view->setTemplateMode(View::TEMPLATE_MODE_CP);

$view->registerJsFile('https://js.braintreegateway.com/web/dropin/1.20.0/js/dropin.min.js');
$view->registerJsFile('https://js.braintreegateway.com/web/dropin/1.20.1/js/dropin.min.js');
$view->registerAssetBundle(DropinUiAsset::class);
$html = $view->renderTemplate('commerce-braintree/paymentForms/dropin-ui', $params);

Expand Down

0 comments on commit ead44e9

Please sign in to comment.