#nicks78

1 messages · Page 1 of 1 (latest)

tired trailBOT
hollow remnant
#

hello! gimme a while to 👀

cyan spire
#

hello

hollow remnant
#

can you share the code snippet where you're adding it in?

cyan spire
#

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,
});

vivid nebula
cyan spire
#

appleMerchantIdentifier is the "com.merchant.nameofmerchant" etc... this a different name

#

merchantDisplayName est present in "initPaymentSheet", but I ma not using this

sleek maple
#

Hey! Taking over for my colleague. Let me catch up.

cyan spire
#

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.

sleek maple
#

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

#

It is derived also from the the kCFBundleNameKey of Bundle.main is this value set in your package ?

cyan spire
#

yes my bundle name is correct as everything working correctly but the missing merchantDisplayName make me failed apple-review validation

sleek maple
#

Did you tried to work with PaymentSheet ?

#

And you are having the same issue ?

cyan spire
#

I cannot use paymentSheet because I cannot get the payment-method id

wet valve
#

👋 taking over for my colleague. Let me catch up.

wet valve
#

do you need to collect the PaymentMethod Id after the payment is done?

cyan spire
#

yes

wet valve
#

you can with the PaymentSheet

cyan spire
#

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

wet valve
#

this is the flow you're looking for then

cyan spire
#

will it work with react-native ?

wet valve
cyan spire
#

thanks I will have a look