Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Phone Number from Order Capture #328

Closed
Lucien950 opened this issue Jan 1, 2023 · 1 comment
Closed

[Feature] Phone Number from Order Capture #328

Lucien950 opened this issue Jan 1, 2023 · 1 comment

Comments

@Lucien950
Copy link

🚀 Feature Proposal

Order capture also contains phone number.

Motivation

The form requires the submission of a phone number, amongst other fields of personal information. It would require another form to get phone number, which is bad for UX.

Example

onApprove: async function(data, actions) {
    const orderInfo = await actions.order.capture()
    //orderInfo.payer.phone_number or orderInfo.purchase_units[0].shipping.phone_number
}
@gregjopa
Copy link
Contributor

gregjopa commented Mar 7, 2023

The buyer's phone number is considered sensitive data which we cannot expose. Due to this reason, the buyer will always have to enter phone number into the inline guest credit card form.

@gregjopa gregjopa closed this as completed Mar 7, 2023
@paypal paypal deleted a comment from Anemia88 Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants