Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Braintree drop-in JS, PFWA-24 #1298

Merged
merged 1 commit into from
Mar 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions classes/wc-gateway-braintree-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,24 +813,16 @@ function onClientCreate(err, client) {
<?php } ?>
braintree.hostedFields.create({
client: client,
style: {
styles: {
'input': {
'font-size': '1.5em',
'padding': '8px',
'background-repeat': 'no-repeat',
'background-position': 'right .618em center',
'background-size': '32px 20px',
'position': 'inherit',
'background-color': '#FFF',
'height': 'auto',
'width': 'auto'
'font-size': '1.3em'
}
},
fields: {
number: {
selector: '#braintree-card-number',
placeholder: '•••• •••• •••• ••••',
class:'wc-credit-card-form-card-number'
class:'input-text wc-credit-card-form-card-number'
},
cvv: {
selector: '#braintree-card-cvc',
Expand Down Expand Up @@ -1593,7 +1585,7 @@ public function payment_scripts() {
return;
}
if ($this->enable_braintree_drop_in) {
wp_enqueue_script('braintree-gateway', 'https://js.braintreegateway.com/web/dropin/1.10.0/js/dropin.min.js', array('jquery'), null, false);
wp_enqueue_script('braintree-gateway', 'https://js.braintreegateway.com/web/dropin/1.16.0/js/dropin.min.js', array('jquery'), null, false);
} else {
wp_enqueue_style('braintree_checkout', PAYPAL_FOR_WOOCOMMERCE_ASSET_URL . 'assets/css/braintree-checkout.css', array(), VERSION_PFW);
wp_enqueue_script('braintree-gateway-client', 'https://js.braintreegateway.com/web/3.35.0/js/client.min.js', array('jquery'), null, true);
Expand Down