Skip to content

Commit

Permalink
Update to latest version of Braintree JS Client
Browse files Browse the repository at this point in the history
Only add form values when tokenizing Venmo on Braintree
  • Loading branch information
douglasmiller committed Jul 17, 2023
1 parent 9282498 commit 00aeaac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/recurly/paypal/strategy/braintree.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PayPalStrategy } from './index';

const debug = require('debug')('recurly:paypal:strategy:braintree');

export const BRAINTREE_CLIENT_VERSION = '3.76.0';
export const BRAINTREE_CLIENT_VERSION = '3.96.0';

/**
* Braintree-specific PayPal handler
Expand Down
4 changes: 2 additions & 2 deletions lib/recurly/venmo/strategy/braintree.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import after from '../../../util/after';
import { VenmoStrategy } from './index';
import { normalize } from '../../../util/normalize';

export const BRAINTREE_CLIENT_VERSION = '3.76.0';
export const BRAINTREE_CLIENT_VERSION = '3.96.0';

const debug = require('debug')('recurly:paypal:strategy:braintree');

Expand Down Expand Up @@ -85,7 +85,7 @@ export class BraintreeStrategy extends VenmoStrategy {
const nameData = normalize(this.form, ['first_name', 'last_name']);
this.recurly.request.post({
route: '/venmo/token',
data: { type: 'braintree', payload: { ...payload, ...nameData } },
data: { type: 'braintree', payload: { ...payload, values: nameData.values } },
done: (error, token) => {
if (error) return this.error('venmo-braintree-tokenize-recurly-error', { cause: error });
this.emit('token', token);
Expand Down

0 comments on commit 00aeaac

Please sign in to comment.