#jesuisilya
1 messages · Page 1 of 1 (latest)
Hi, there doesn't seem to be anything similar to merchantDisplayName when using createPlatformPayPaymentMethod
Hi
Can you share more details about your integration? what are you trying to do with the method createPlatformPayPaymentMethod?
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
Thanks for sharing these details, yeah createPlatformPayPaymentMethod seems not supporting merchantDisplayName params (not like googlePay for example which has merchantName prop). I think you should use PaymentSheet for this. kind of scenario:
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentSheetWithSetupIntent.tsx
Which support MerchantNameDisplay
Yeah that's what I've been looking into today, is there an example of the backend endpoint for setupIntent?
Yes you can find all the endpoints used by that sample in this backend:
https://github.com/stripe/stripe-react-native/blob/master/example/server/index.ts
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
Here is the endpoint for creating a SetupIntent:
https://github.com/stripe/stripe-react-native/blob/master/example/server/index.ts#L338
I'll submit a feedback for the team owning this, you can also open a Github issue also if you think this is really blocking for you.
Can you share your Stripe AccountId between ? acct_123
Yeah, one moment please
acct_1KouEmKGtfztACnT
Uhh, I don't have time as I need to sort out Apple Pay asap so I'll have to switch to using payment sheet
One last question, what exactly is a payment sheet? Is there an example of what it looks like in terms of UI?
it's what's called "mobile payment element" in these docs https://stripe.com/docs/payments/accept-a-payment?platform=ios
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
Is there a potential eta for when this issue could be resolved or at least investigated?
no