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

Setting delivery address #8

Open
peteeveleigh opened this issue Apr 8, 2020 · 3 comments
Open

Setting delivery address #8

peteeveleigh opened this issue Apr 8, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@peteeveleigh
Copy link

Hi

Is it possible to set the delivery address for an Apple Pay transaction using the address info from the cart?

We have a situation where we have to collect billing and shipping addresses prior to showing the Apple Pay button. The addresses get set fine on the cart, but then the delivery address is getting overridden by whatever is set on the user's device. Consequently we are getting orders where the order ends up with the wrong delivery address.

I feel something like this must be possible given how services like Deliveroo and JustEat work. i.e. you can set a delivery address during the checkout process and this gets passed to Apple Pay.

@alexjcollins
Copy link
Member

Hi,

From what I understand, the delivery address is set by the user in the Apply Pay dialogue where they can interact with addresses they've defined for use with Apple Pay and add more.

However, we'll look through the docs to see if there is a way to define the address in the Payment Request. I haven't used Deliveroo in a long while, but could be a good excuse to test this out!

If that's not possible, how would you feel about a setting in the plugin that ignored the delivery address returned by Apple Pay, so the cart retained the shipping address defined during the checkout process?

@alexjcollins alexjcollins added the enhancement New feature or request label Apr 8, 2020
@peteeveleigh
Copy link
Author

peteeveleigh commented Apr 8, 2020 via email

@Tam
Copy link
Member

Tam commented Apr 9, 2020

@fantasticmachine Have you tried setting requestShipping to false when outputting the payment button? As per the docs: https://github.com/ethercreative/web-payments#requestshipping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants