@@ -175,15 +175,16 @@ function generateExpectedPaypalSdkUrl(array $params) : String
175175 'client-id ' => 'sb ' ,
176176 'locale ' => 'en_BR ' ,
177177 'currency ' => 'USD ' ,
178+ 'enable-funding ' => implode (', ' , ['venmo ' , 'paylater ' ]),
178179 'buyer-country ' => 'US ' ,
179180 'commit ' => 'false ' ,
180181 'intent ' => 'authorize ' ,
181182 'merchant-id ' => 'merchant ' ,
182183 'disable-funding ' => implode (
183184 ', ' ,
184- ['credit ' , 'sepa ' , 'venmo ' , ' bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
185+ ['credit ' , 'sepa ' , 'bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
185186 ),
186- 'components ' => implode (', ' , ['messages ' , 'buttons ' ])
187+ 'components ' => implode (', ' , ['messages ' , 'buttons ' ]),
187188 ]
188189 )
189190 ]
@@ -200,12 +201,13 @@ function generateExpectedPaypalSdkUrl(array $params) : String
200201 'client-id ' => 'sb ' ,
201202 'locale ' => 'en_BR ' ,
202203 'currency ' => 'USD ' ,
204+ 'enable-funding ' => implode (', ' , ['venmo ' , 'paylater ' ]),
203205 'commit ' => 'false ' ,
204206 'intent ' => 'authorize ' ,
205207 'merchant-id ' => 'merchant ' ,
206208 'disable-funding ' => implode (
207209 ', ' ,
208- ['credit ' , 'sepa ' , 'venmo ' , ' bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
210+ ['credit ' , 'sepa ' , 'bancontact ' , 'eps ' , 'giropay ' , 'ideal ' , 'mybank ' , 'p24 ' , 'sofort ' ]
209211 ),
210212 'components ' => implode (', ' , ['messages ' , 'buttons ' ]),
211213 ]
0 commit comments