#vm1172
1 messages · Page 1 of 1 (latest)
hey bismarck, long time haha.
Previous thread here for reference: https://discord.com/channels/841573134531821608/1159161337822330961
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?
From my side, I've gone through each property inside confirmPlatformPayPayment and commented it out to make it work, but with no success
Okay. If you check the typeof before you pass in your client secret does it confirm it is a string?
yes, its a string
Yeah you had hardcoded it yesterday so not sure how it woudn't be....
Hmmm
Just trying to think of other things to investigate
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
- 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. - User triggers onPress on
PlatformPayButtonwhich runs thepayfunction
<PlatformPayButton
onPress={pay}
onShippingContactSelected={async (contact) =>
onShippingContactSelected(contact.shippingContact)
}
// onCouponCodeEntered={couponCodeListener}
type={PlatformPay.ButtonType.Order}
appearance={PlatformPay.ButtonStyle.Automatic}
borderRadius={2}
/>
You are testing on an actual device, correct? You aren't trying to test on a simulator, right?
I'm only testing on Simulator
Run a quick test. I thought I recalled there being an issue testing Apple Pay on simulator with Expo
question: is expo go fine or do I need to make a build and then push to TestFlight etc?
I'm actually not very familiar with expo at all as I always build React Native using the RN CLI without Expo
okay, understood. give me 20 minutes to get this set up and I'll get back to you
will build the app
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
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?
Nah let's just start with a normal test
sounds good, on it right now, pinging this thread to keep it alive
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
appreciate it thank you
hey @junior thicket , im still here, just following the instructions bismarck shared w me to test Apple Pay in a build
I'm still around too
@rotund hawk any update?