#Altrollique
1 messages · Page 1 of 1 (latest)
Hi there!
Where exactly do you see this error? It's Apple that sends this to you when you try to submit your app?
Yes exactly, it's in their response for our app submission to App store
I saw the issue on github and we do this :
const response = await presentApplePay({
cartItems: [
{
label: "Bik’air SAS" +"-"+t("payment.add_card"),
amount: "0.00",
paymentType: "Deferred",
deferredDate: Date.now(),
},
],
country: CONFIG_PAYMENT.country,
currency: CONFIG_PAYMENT.currency,
});
here the github issue I saw :
https://github.com/capacitor-community/stripe/issues/115
Thanks for the clarification, give me a few minutes to look into this.
Hi there 👋 apologies for the delay. I'm jumping in to lend a hand,
when initializing the PaymentSheet, are you setting well the merchantName? somehow like this:
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentsUICompleteScreen.tsx#L84
When you do your payments Tests, are you seeing your Company name in the Apple Pay popups ? like "Example Inc." in this screenshot
I'll look into it and come back to you
In our code we use useApplePay and not useStripe to get method relative to this. You recommand using useStripe instead ?
Does this implementation allow use to init a payment of 0€ in order to retrieve payment info and create a setup intent to register the card in stripe for future use. We what to use apple pay only to register the card and they do payment to our service when needed directly with your api and the payment method registered with your api.
Honestly, not very familiar with ReactNative, in order to recommend but according to the official stripe react native example useStripe is the one used.
Also according to this guide, the same logic is used.
https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet#react-native-collect-payment-details
ok thank you I look into it and come back if I have other question. Thank you
Otherwise just a quick hint, when calling presentApplePay why are you using :
paymentType: "Deferred",
deferredDate: Date.now(),
and not just
paymentType: "Immediate",
?
Well I wasn't the one writing it so I can't tell you but thank you for the hint I'll forward this to the other dev.
Thank you
You're welcome 🙂