#jperf
1 messages ยท Page 1 of 1 (latest)
Hello! Can you share the code you're using to initialize the PaymentSheet?
yea one moment.
I am also using
"@stripe/stripe-react-native": "^0.29.0",
fwiw
basically this but some what simplified
const res = await initPaymentSheet({
billingDetailsCollectionConfiguration: {
address: PaymentSheet.AddressCollectionMode.FULL,
},
merchantDisplayName: "our name",
customFlow: true,
applePay: {
merchantCountryCode: "US",
cartItems: [...],
},
returnURL: "our_url",
customerId: "stripeCustomerId",
paymentIntentClientSecret: "paymentIntentClientSecret",
customerEphemeralKeySecret: "customerEphemeralKeySecret",
});
I think it is because i am using the customFlow flag actually
turning that off show the following
Ah, yeah.
is there is a way to keep it but leave the custom flow flag on?
I don't think so, but let me see what I can find...
if not all g ๐ just wondering
Yep, doesn't look like it. I can flag that as a feature request internally if you'd like?
yea sure that would be cool. Is there a place in the documentation that defines how the customFlow display differs from the original?
No, I think the most we have is this comment in the source code: https://github.com/stripe/stripe-react-native/blob/dc50050dccab5d0433d5fade80214463763c1438/src/types/PaymentSheet.ts#L20-L22
Yeah, I was surprised it wasn't documented in the API docs for the SDK.
the SDK docs are spare in general tbh
these are good https://stripe.dev/stripe-react-native/api-reference/index.html
but in only from a type side not higher level if that makes sense
Documentation for @stripe/stripe-react-native
๐๐ป much thanks
Done!
