-
Notifications
You must be signed in to change notification settings - Fork 264
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
[Android] Can't request shipping address from Google Pay #580
Comments
@YoQuieroDistraerlo I believe this would need to be implemented in |
@arekkubaczkowski and @YoQuieroDistraerlo Let me take a look into why this is currently not supported and get back to you. |
@arekkubaczkowski and @YoQuieroDistraerlo The Google Pay Android SDK shipping collection functionality is very limited right now and so it is not supported. This is something that we do have in our backlog and we will contact you when support is added. |
Hi there, |
One advantage of Google Pay is that the user doesn't have to type their billing nor shipping addresses (not to mention card data). Billing address request can be configured with initGooglePay/billingAddressConfig. However, there is no way to request the shipping address from Google Pay.
Taken from the docs (migration from tipsi):
To reproduce the behavior just implement the migration as documented (shown above).
I also checked GooglePayLauncher.Config and didn't see anything there that could help.
Since Google Pay still has a Home address and, a Billing address associated to each payment method, we should be able to request this address and allow the customer to use it.
initGooglePay should have a configuration option to request the shipping address, including a countries list to restrict delivery.
Partial workaround
When Payment Intent is modified by this library (i.e., confirmed), billing address from Google Pay can be extracted from the associated charge (billing_details) and that address can be used to update the Payment Intent's shipping address. When the customer is created (on payment intent creation in backend) there is no address available to be set, so the customer's billing address should also be set with said address.
With this partial workaround the possible payment intent rejection by fraud rules checking billing/shipping addresses is still an issue.
The text was updated successfully, but these errors were encountered: