braintree / braintree-web

A suite of tools for integrating Braintree in the browser
https://developer.paypal.com/braintree/docs/start/hello-client/javascript/v3
MIT License
444 stars 134 forks source link

DTBTPWPP - Add user authentication email #726

Closed skunkworks closed 2 months ago

skunkworks commented 2 months ago

Summary

Add support for userAuthenticationEmail, which sends payerEmail to the create_payment_resource and setup_billing_agreement endpoints for Pay with PayPal.

The iOS and Android SDKs already support passing the payer_email field, and this adds support to the JS SDK.

Checklist

mikenichols commented 2 months ago

Hi @skunkworks ! Thank you for submitting this PR. We actually did the same work a month or so ago but we left it on a feature branch. Since this repo is actually downstream from our regular repo, I can go ahead and make the change there for you. I'll have that done by EOD.