#jesuisilya

1 messages · Page 1 of 1 (latest)

mint sundialBOT
cinder hazel
#

Hi, there doesn't seem to be anything similar to merchantDisplayName when using createPlatformPayPaymentMethod

manic tide
#

Hi
Can you share more details about your integration? what are you trying to do with the method createPlatformPayPaymentMethod?

cinder hazel
#

I am using it for Apple Pay in my app. Everything is working, I am able to collect payment methods for future payments with this integration, but our submission was flagged by apple because on the apple pay popup screen it does not mention our merchant name

#
  const createPaymentMethod = async () => {
    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,
        ],
      },
    });
    if (error) {
      Log.error('Error when creating payment method', error);
    } else {
      await ConfirmSetupIntent(paymentMethod);
    }
  };
#

Another member of staff suggested yesterday that I switch to using initPaymentSheet for Apple Pay, but then what's the point of createPlatformPayPaymentMethod

manic tide
#

Which support MerchantNameDisplay

cinder hazel
#

Yeah that's what I've been looking into today, is there an example of the backend endpoint for setupIntent?

manic tide
cinder hazel
#

Also is it a bug that there's no merchant display name parameter in this method? As there's no way to submit to the app store without having it

manic tide
manic tide
#

Can you share your Stripe AccountId between ? acct_123

mint sundialBOT
cinder hazel
#

Yeah, one moment please

cinder hazel
cinder hazel
#

One last question, what exactly is a payment sheet? Is there an example of what it looks like in terms of UI?

regal cypress
cinder hazel
#

Okay, thank you for your help, I think we will end up disabling Apple Pay temporarily to be able to submit to the App Store as we are using custom payment screens for adding bank cards and such

cinder hazel
regal cypress
#

no