Skip to content

Commit

Permalink
Merge pull request #1298 from angelleye/PFWA-24
Browse files Browse the repository at this point in the history
Update Braintree drop-in JS, PFWA-24
  • Loading branch information
Drew Angell committed Mar 26, 2019
2 parents 7c72c3b + 96bf368 commit 172bd7c
Showing 1 changed file with 4 additions and 12 deletions.
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

0 comments on commit 172bd7c

Please sign in to comment.