@@ -175,15 +175,16 @@ function generateExpectedPaypalSdkUrl(array $params) : String
175
175
'client-id ' => 'sb ' ,
176
176
'locale ' => 'en_BR ' ,
177
177
'currency ' => 'USD ' ,
178
+ 'enable-funding ' => implode (', ' , ['venmo ' , 'paylater ' ]),
178
179
'buyer-country ' => 'US ' ,
179
180
'commit ' => 'false ' ,
180
181
'intent ' => 'authorize ' ,
181
182
'merchant-id ' => 'merchant ' ,
182
183
'disable-funding ' => implode (
183
184
', ' ,
184
- ['credit ' , 'sepa ' , 'venmo ' , ' bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
185
+ ['credit ' , 'sepa ' , 'bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
185
186
),
186
- 'components ' => implode (', ' , ['messages ' , 'buttons ' ])
187
+ 'components ' => implode (', ' , ['messages ' , 'buttons ' ]),
187
188
]
188
189
)
189
190
]
@@ -200,12 +201,13 @@ function generateExpectedPaypalSdkUrl(array $params) : String
200
201
'client-id ' => 'sb ' ,
201
202
'locale ' => 'en_BR ' ,
202
203
'currency ' => 'USD ' ,
204
+ 'enable-funding ' => implode (', ' , ['venmo ' , 'paylater ' ]),
203
205
'commit ' => 'false ' ,
204
206
'intent ' => 'authorize ' ,
205
207
'merchant-id ' => 'merchant ' ,
206
208
'disable-funding ' => implode (
207
209
', ' ,
208
- ['credit ' , 'sepa ' , 'venmo ' , ' bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
210
+ ['credit ' , 'sepa ' , 'bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
209
211
),
210
212
'components ' => implode (', ' , ['messages ' , 'buttons ' ]),
211
213
]
0 commit comments