File tree 4 files changed +12
-3
lines changed
4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ export function getVenmoConfig(): FundingSourceConfig {
62
62
if (
63
63
platform === PLATFORM . MOBILE &&
64
64
experiment &&
65
- experiment . venmoWebEnabled === false
65
+ experiment . venmoWebEnabled === false &&
66
+ experiment . venmoEnableOnNonNativeBrowser === false
66
67
) {
67
68
return {
68
69
native : true ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ describe("Venmo eligibility", () => {
13
13
fundingEligibility : { } ,
14
14
experiment : {
15
15
venmoWebEnabled : true ,
16
+ venmoEnableOnNonNativeBrowser : true ,
16
17
} ,
17
18
wallet : expect . any ,
18
19
flow : BUTTON_FLOW . PURCHASE ,
@@ -74,7 +75,7 @@ describe("Venmo eligibility", () => {
74
75
expect ( isVenmoEligible ) . toEqual ( true ) ;
75
76
} ) ;
76
77
77
- test ( "should not be eligible if a shipping callback is passed & experiment does not include venmoWebEnabled" , ( ) => {
78
+ test ( "should not be eligible if a shipping callback is passed & experiment does not include venmoWebEnabled or venmoEnableOnNonNativeBrowser " , ( ) => {
78
79
const isVenmoEligible = venmoConfig . eligible ?. ( {
79
80
...baseEligibilityProps ,
80
81
experiment : { } ,
@@ -84,7 +85,7 @@ describe("Venmo eligibility", () => {
84
85
expect ( isVenmoEligible ) . toEqual ( false ) ;
85
86
} ) ;
86
87
87
- test ( "should be eligible if shipping callback exists & experiment includes venmoWebEnabled" , ( ) => {
88
+ test ( "should be eligible if shipping callback exists & experiment includes venmoWebEnabled or venmoEnableOnNonNativeBrowser " , ( ) => {
88
89
const isVenmoEligible = venmoConfig . eligible ?. ( {
89
90
...baseEligibilityProps ,
90
91
shippingChange : true ,
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export type Experiment = {|
62
62
venmoWebEnabled ? : boolean ,
63
63
// first render experiments
64
64
venmoVaultWithoutPurchase ? : boolean ,
65
+ venmoEnableOnNonNativeBrowser ? : boolean ,
65
66
| } ;
66
67
67
68
export type Requires = { |
Original file line number Diff line number Diff line change @@ -296,6 +296,12 @@ export function getVenmoCheckoutComponent(): VenmoCheckoutComponent {
296
296
required : false ,
297
297
} ,
298
298
299
+ venmoEnableOnNonNativeBrowser : {
300
+ type : "boolean" ,
301
+ queryParam : true ,
302
+ required : false ,
303
+ } ,
304
+
299
305
venmoVaultEnabled : {
300
306
type : "boolean" ,
301
307
queryParam : true ,
You can’t perform that action at this time.
0 commit comments