#jesuisilya
1 messages · Page 1 of 1 (latest)
hi, this is what the screen looks like where I am collecting setup intent
Are following this integration?
https://stripe.com/docs/payments/save-and-reuse?platform=web#apple-pay-and-google-pay
Sorry, I am using react native as it's a mobile app, would this article be relevant for react native?
There is a tab for Reactnative
https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet#react-native-apple-pay
Okay I see, I am using createPlatformPayPaymentMethod instead of initPaymentSheet, would switching to this implementation solve the issue?
First, did you registered for Apple pay merchant Id and a new Apple Pay certificate ?
Yeah, I have apple pay fully working in our development environment, it's the app store submission that got flagged
I don't think that will be related honestly. you are missing something in your integration and not passing the required information (Product description and specifications and Pricing)
But what I could I possibly use for product description if I am simply collecting payment method? This implementation doesn't seem to include this information either
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
Did you reply to Apple and said that you are just collecting the PaymentMethod without any purchase amount:0 ?
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?
Yes you need the merchantDisplayName
that's available in PaymentSheet, check this sample screen:
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentSheetWithSetupIntent.tsx
Yeah but I don't see it in the list of parameters of createPlatformPayPaymentMethod, is this not a problem?
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.
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
I'm not sure about that honestly, try doing a quick test.
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
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
Yes, please test and let me know if there's still issues.