#nicks78
1 messages · Page 1 of 1 (latest)
hello! gimme a while to 👀
hello
can you share the code snippet where you're adding it in?
sure
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,
});
Hi, I don't see a merchantDisplayName in the iOS SDK API reference, but there's an appleMerchantIdentifier in STPPaymentConfiguration https://stripe.dev/stripe-ios/docs/Classes/STPPaymentConfiguration.html#/c:@M@Stripe@objc(cs)STPPaymentConfiguration(py)appleMerchantIdentifier
appleMerchantIdentifier is the "com.merchant.nameofmerchant" etc... this a different name
merchantDisplayName est present in "initPaymentSheet", but I ma not using this
Hey! Taking over for my colleague. Let me catch up.
So apple-review is rejected because they say missing merchantDisplayName on popup wallet
with stripe-react-native, you have a function dedicated for google-pay called "createPaymentMethod" and I am trying to have the same behavior/function for apple-pay.
Thanks for the hints, let me check something
Actually the merchantDisplayName can be set clearly with PaymentSheet, but with the function presentApplePay I didn't find so far how to set it
You are looking for the field companyName:
https://stripe.dev/stripe-ios/docs/Classes/STPPaymentConfiguration.html#/c:@M@Stripe@objc(cs)STPPaymentConfiguration(py)companyName
It is derived also from the the kCFBundleNameKey of Bundle.main is this value set in your package ?
yes my bundle name is correct as everything working correctly but the missing merchantDisplayName make me failed apple-review validation
I cannot use paymentSheet because I cannot get the payment-method id
👋 taking over for my colleague. Let me catch up.
could you please elaborate on this?
do you need to collect the PaymentMethod Id after the payment is done?
yes
you can with the PaymentSheet
but I don't want to make a real payment
I want to store the payment-method-id to be use later
our user need to register the card first
this is the flow you're looking for then
will it work with react-native ?
thanks I will have a look