#SishirG-applepay

1 messages · Page 1 of 1 (latest)

lost granite
boreal pewter
#

hi @lost granite

lost granite
#

we haven't heard any other reports of this

boreal pewter
#

can i show you my code setup

lost granite
#

I can test it in a little bit. How do you integrate, using our stripe-ios library, which component and which version of the library?

boreal pewter
#

because it was working in my previous IOS version which was around 13.something and when i updated to ios 15 it just stopped.

#
  const [, setCartItems] = useAtom(CARTITEMS);
  const {presentApplePay, confirmApplePayPayment, isApplePaySupported} =
    useApplePay();

  useEffect(() => {
    initStripe({
      publishableKey: STRIPE_PUBLISHABLE_KEY_LIVE,
      merchantIdentifier: STRIPE_MERCHANT_IDENTIFIER,
      stripeAccountId: purchaseInfo.vendorId,
    });
  });

  const items = [
    {
      label: purchaseInfo.storeTitle,
      amount: JSON.stringify(purchaseInfo.total),
    },
  ];

  const checkPay = async () => {
    if (isApplePaySupported) {
      pay();
    } else {
      Alert.alert('Please setup ApplePay to make payments.');
    }
  };

  const pay = async () => {
    try {
      const details = await presentApplePay({
        cartItems: items,
        country: 'US',
        currency: 'USD',
        shippingMethods: [],
        requiredBillingContactFields: [],
        requiredBillingAddressFields: [],
      });
}
#

I'm on "@stripe/stripe-react-native": "^0.2.3",

#

when I try to console.log(details) there is no response

#

My ios version is 15.0.3

lost granite
#

fair enough!

#

as I said no one else has reported this that I'm aware of. I'm trying to test it but I also need to update my version of XCode to be able to deploy my app to my iOS 15 iPhone so it will take a while

#

I'd suggest writing to https://support.stripe.com/email with a detailed description of what you're seeing and the exact versions of everything you're using so we can try to dig into this

boreal pewter
#

The only thing is that I'm trying to push an update and apple is testing my app on ios 15.0.3, and it keeps on failing on their end. So, my production app is really getting stuck

#

:((

#

@lost granite how fast do you think we can debug this?

lost granite
#

well the sooner you write in the sooner it will be!

boreal pewter
#

What was the email again?

lost granite
#

I am trying to test it myself in the mean time but I have to download/install the new version of XCode, and probably recompile my app, while also helping other users so I'm not going to be able to get you an immediate answer here but it's definitely something we'd want to investigate

boreal pewter
#

Yea totally it seems to be working fine on ios 14.7.1 as well but as soon as i try to use anything about ios 15.0 i get the issue

#

Both running the exact same code as above

lost granite
#

thanks but can you put that in an email as well?

boreal pewter
#

I'm sorry but i can't seem to find an email

lost granite
#

Contact Support in the top right, you have an 'API Integration' question, you can submit details there

boreal pewter
#

Can't do it

#

I can't create a ticket as welll

lost granite
#

hmm. I guess email us at that address then

#

but yeah the support form should not be broken, I'll raise that internally

boreal pewter
#

Sent! Please lmk if you can fix it asap

#

my app is stuck on update because of this

#

and people who've updated wont be able to use apple pay :((

lost granite
#

yep, I appreciate the urgency! it takes time though(I started installing XCode 13 at the start of this conversation and it's still not done) so taking it async to a support ticket (they'll go to my team, to be clear) is the best option here so we can look and work with you on it