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

Pass required_shipping_contact_fields field in apple pay session call based on business_profile config #4615

Closed
ShankarSinghC opened this issue May 9, 2024 · 0 comments · Fixed by #4616
Assignees
Labels
A-payment-methods Area: Payment Methods

Comments

@ShankarSinghC
Copy link
Contributor

ShankarSinghC commented May 9, 2024

This change is required as part of the one click checkout where in which we expect apple pay to collect the shipping details from the customer and pass it in the confirm call with the payment_data.
In order for apple pay to collect the shipping details from customer we need to pass "requiredShippingContactFields": ["postalAddress", "phone", "email"] in the /session call. Hence we need to have a validation in the backend that checks for the business profile config (collect_shipping_details_from_wallet_connector) fields and pass the required_shipping_contact_fields to sdk.

Similarly for google pay we need to pass the below mentioned fields for the shipping details.

"shipping_address_required": true,
            "email_required": true,
            "shipping_address_parameters": {
                "phone_number_required": true
            },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-payment-methods Area: Payment Methods
Projects
None yet
1 participant