#gosborn-applepay
1 messages · Page 1 of 1 (latest)
I'm not sure what requiredBillingContactFields is. Where is that coming from?
I'm using it like this: https://stripe.com/docs/apple-pay?platform=react-native#client-side
const { error } = await presentApplePay({
cartItems: [{ label: 'Example item name', amount: '14.00', paymentType: 'Immediate' }],
country: 'US',
currency: 'USD',
shippingMethods: [
{
amount: '20.00',
identifier: 'DPS',
label: 'Courier',
detail: 'Delivery',
},
],
requiredShippingAddressFields: ['emailAddress', 'phoneNumber'],
requiredBillingContactFields: ['phoneNumber', 'name'],
});
Also, if I add 'phoneNumber' I see no change. 'postalAddress' is the only parameter that seems to change the UI: 'Add Billing Address' is now added to the Apple Pay sheet.
Checking in with a colleague who knows react Native better than me. Will circle back in a few minutes