Skip to content

Commit

Permalink
Release braintree-web 3.101.1 source
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Plukarski <jplukarski@paypal.com>
  • Loading branch information
braintreeps committed Apr 4, 2024
1 parent a831ec6 commit 93048a4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

# 3.101.1

- Venmo
- Fix issue where the Venmo Desktop flow would sometimes report as a mobile web transaction

# 3.101.0

- Venmo
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "braintree-web",
"version": "3.101.0",
"version": "3.101.1",
"license": "MIT",
"main": "src/index.js",
"private": true,
Expand Down
5 changes: 4 additions & 1 deletion src/venmo/venmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ Venmo.prototype._createVenmoPaymentContext = function (
var configuration = client.getConfiguration();
var venmoConfiguration = configuration.gatewayConfiguration.payWithVenmo;
var transactionDetailsPresent = false;
var customerClientChannel = self._useAllowDesktopWebLogin
? "WEB"
: "MOBILE_WEB";

if (!this._shouldCreateVenmoPaymentContext) {
return Promise.resolve();
Expand Down Expand Up @@ -309,7 +312,7 @@ Venmo.prototype._createVenmoPaymentContext = function (
input: {
paymentMethodUsage: this._paymentMethodUsage,
intent: "CONTINUE",
customerClient: "MOBILE_WEB",
customerClient: customerClientChannel,
isFinalAmount: this._isFinalAmount,
displayName: this._displayName,
paysheetDetails: {
Expand Down
16 changes: 16 additions & 0 deletions test/venmo/unit/venmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3005,6 +3005,22 @@ describe("Venmo", () => {
api: "graphQLApi",
data: expect.objectContaining({
query: expect.stringMatching("mutation CreateVenmoPaymentContext"),
variables: {
input: {
customerClient: "WEB",
// eslint-disable-next-line no-undefined
displayName: undefined,
intent: "CONTINUE",
isFinalAmount: false,
paymentMethodUsage: "SINGLE",
paysheetDetails: {
collectCustomerBillingAddress: false,
collectCustomerShippingAddress: false,
// eslint-disable-next-line no-undefined
transactionDetails: undefined,
},
},
},
}),
};
const result = await venmo.tokenize();
Expand Down

0 comments on commit 93048a4

Please sign in to comment.