hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

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

Open ShankarSinghC opened this issue 9 months ago • 0 comments

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.

ShankarSinghC avatar May 09 '24 18:05 ShankarSinghC