#gosborn-applepay

1 messages · Page 1 of 1 (latest)

simple runeBOT
thorn ibex
#

I'm not sure what requiredBillingContactFields is. Where is that coming from?

short sand
#
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.

thorn ibex
#

Checking in with a colleague who knows react Native better than me. Will circle back in a few minutes

mighty ridge
#

👋 stepping in and catching up

#

What version of the SDK are you using?

sonic basalt
#

gosborn-applepay

#

@short sand Did you still need help?