#jesuisilya

1 messages · Page 1 of 1 (latest)

turbid marlinBOT
obsidian gull
#

hi, this is what the screen looks like where I am collecting setup intent

coral geode
obsidian gull
#

Sorry, I am using react native as it's a mobile app, would this article be relevant for react native?

obsidian gull
#

Okay I see, I am using createPlatformPayPaymentMethod instead of initPaymentSheet, would switching to this implementation solve the issue?

coral geode
#

First, did you registered for Apple pay merchant Id and a new Apple Pay certificate ?

obsidian gull
#

Yeah, I have apple pay fully working in our development environment, it's the app store submission that got flagged

coral geode
obsidian gull
obsidian gull
#

Yeah this is what my implementation is based off, and this example includes cartItems, which I can't do because there is nothing in the cart as I am simply adding a payment method

coral geode
#

Did you reply to Apple and said that you are just collecting the PaymentMethod without any purchase amount:0 ?

obsidian gull
#

Not yet as I thought this was an implementation issue

#

I think I'll have to do this first before changing the implementation

#

They've also flagged the submission for not having Merchant's name on the payment sheet. I don't see in this sample (or anywhere else) if it's possible to pass merchantDisplayName to createPlatformPayPaymentMethod

#

Could you please confirm whether merchantDisplayName is the right parameter name in this case?

obsidian gull
#

Yeah but I don't see it in the list of parameters of createPlatformPayPaymentMethod, is this not a problem?

coral geode
#

I'm not sure how you are exactly integrating the Apple Pay... but try to reply to Apple pay first and explain your use case exactly. and if they ask you to include that try PaymentSheet that covers all the requirements.

obsidian gull
#

Okay I think I'll have to run a build to see if it's possible to add mechantDisplayName here

#
    const { paymentMethod, error } = await createPlatformPayPaymentMethod({
      applePay: {
        cartItems: [{
          label: 'Total',
          amount: '0.00',
          isPending: false,
          paymentType: PlatformPay.PaymentType.Immediate,
        }],
        merchantCountryCode: 'GB',
        currencyCode: 'GBP',
        requiredBillingContactFields: [
          PlatformPay.ContactField.EmailAddress,
          PlatformPay.ContactField.PhoneNumber,
          PlatformPay.ContactField.Name,
        ],
      },
    });
#

This is what my implementation looks like

coral geode
#

I'm not sure about that honestly, try doing a quick test.

ornate pond
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

obsidian gull
#

Sure, let me know if you have any ideas of what could be done in terms of implementation, otherwise I'll just run a build and if I still have issues I'll reach out to Apple directly

ornate pond
#

Yes, please test and let me know if there's still issues.