javascript email address from credit card
pipous3k
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-23-2019
07:15 AM
Hello,
I've been integrating javsacript smart buttons and I have a question: How can I find out the user's email address he specified prior to purchase?
onApprove: function (data, actions) {
// code here
return actions.order.capture().then(function (data) {
var email = data.payer.email_address // I'm able to get the address when user is paying by PayPal but not when it's via credit card
}
}
How to get the email when user is paying by credit card?
0 REPLIES 0

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Are there any restrictions to charge using only html, vanilla javascript and php with rest api? in REST APIs
- Disable shipping address in Pay with Credit or Debit card button integration in SDKs
- Guest checkout card billing address entered is being replaced in REST APIs
- Need advice on Account / Donations / Payouts / technical issues in Sandbox Environment
- Prevent changing shipping address via SET_PROVIDED_ADDRESS not working. Orders V2 Advanced Checkout in REST APIs