Skip to content

Commit

Permalink
add collect billing and shipping address flags to venmo client, updat…
Browse files Browse the repository at this point in the history
…e client version
  • Loading branch information
isaacvance1027 committed Nov 7, 2023
1 parent a88e7c8 commit 4a51335
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/const/gateway-constants.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const BRAINTREE_CLIENT_VERSION = '3.96.0';
export const BRAINTREE_CLIENT_VERSION = '3.96.1';
8 changes: 7 additions & 1 deletion lib/recurly/venmo/strategy/braintree.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ export class BraintreeStrategy extends VenmoStrategy {
if (error) return this.fail('venmo-braintree-api-error', { cause: error });
debug('Device data collector created');
this.deviceFingerprint = collector.deviceData;
braintree.venmo.create({ client, allowDesktop: true }, (error, venmo) => {
console.log('creating venmo client');
braintree.venmo.create({
client,
allowDesktop: true,
collectCustomerBillingAddress: true,
collectCustomerShippingAddress: true,
}, (error, venmo) => {
if (error) return this.fail('venmo-braintree-api-error', { cause: error });
debug('Venmo client created');
this.venmo = venmo;
Expand Down

0 comments on commit 4a51335

Please sign in to comment.