#vm1172

1 messages · Page 1 of 1 (latest)

manic basinBOT
rotund hawk
gusty berry
#

Hello again

#

Yep I recall. Sorry this is still giving you trouble

#

It is pretty obscure... I haven't seen anyone else run into this.

#

Did you continue to remove pieces from your confirmPlatformPayment() call?

rotund hawk
#

From my side, I've gone through each property inside confirmPlatformPayPayment and commented it out to make it work, but with no success

gusty berry
#

Okay. If you check the typeof before you pass in your client secret does it confirm it is a string?

rotund hawk
#

yes, its a string

gusty berry
#

Yeah you had hardcoded it yesterday so not sure how it woudn't be....

#

Hmmm

#

Just trying to think of other things to investigate

rotund hawk
#

if you would like I can give you a bit of context on what we need from Stripe <> Apple Pay to see if we might be overcomplicating the implementation

Background

  • We need Apple Pay to order a product directly from the product page, including creating a paymentIntent, calculating tax, updating the paymentIntent, and then redirecting the user to the /summary page
#

Current Implementation

  1. Outside in the main parent component, we check to see if Apple Pay is supported. If supported, we display PlatformPayButton, if not, we make the Stripe Checkout Session button be full width.
  2. User triggers onPress on PlatformPayButton which runs the pay function
<PlatformPayButton
          onPress={pay}
          onShippingContactSelected={async (contact) =>
            onShippingContactSelected(contact.shippingContact)
          }
          // onCouponCodeEntered={couponCodeListener}
          type={PlatformPay.ButtonType.Order}
          appearance={PlatformPay.ButtonStyle.Automatic}
          borderRadius={2}
        />
gusty berry
#

You are testing on an actual device, correct? You aren't trying to test on a simulator, right?

rotund hawk
#

I'm only testing on Simulator

gusty berry
#

Ah I think that is the issue

#

Don't think that works

rotund hawk
#

are you sure? this wasn't a problem or issue before

#

I'll try on device right now

gusty berry
#

Run a quick test. I thought I recalled there being an issue testing Apple Pay on simulator with Expo

rotund hawk
#

question: is expo go fine or do I need to make a build and then push to TestFlight etc?

gusty berry
#

I'm actually not very familiar with expo at all as I always build React Native using the RN CLI without Expo

rotund hawk
#

okay, understood. give me 20 minutes to get this set up and I'll get back to you

#

will build the app

gusty berry
#

Ah wait wait....

#

Apple Pay is not supported in Expo Go. To use Apple Pay, you must create a development build.

#

@rotund hawk I think that is your issue/answer here

rotund hawk
#

I've looked at this, it worked for me before! haha

#

but no worries, I'll create a build and confirm

#

is there anything you'd like me to log?

gusty berry
#

Nah let's just start with a normal test

rotund hawk
#

sounds good, on it right now, pinging this thread to keep it alive

gusty berry
#

No worries I won't close it

#

I'm here for another hour or so then my colleague will take over

#

I'll leave this open till we figure it out

rotund hawk
#

appreciate it thank you

manic basinBOT
rotund hawk
#

hey @junior thicket , im still here, just following the instructions bismarck shared w me to test Apple Pay in a build

gusty berry
#

I'm still around too

manic basinBOT
gusty berry
#

@rotund hawk any update?