#kevin_code
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
π This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1443593280473399348
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Here is the code about the intent config, I didn't had enough characters in the first message to add the code
intentStrategy === 'payment_intent'
? { amount: totalPrice, captureMethod: STRIPE_CAPTURE_METHOD[captureMethod] }
: {};
const intentConfiguration: IntentConfiguration = {
mode: {
...intentConfigMode,
setupFutureUsage: STRIPE_SETUP_FUTURE_USAGE[setupFutureUsage],
currencyCode: getCurrentCurrency(),
},
paymentMethodTypes: supportedPaymentModes,
confirmHandler: async (paymentMethod, shouldSavePaymentMethod, intentCreationCallback) => {
await handleConfirmPayment({ intentCreationCallback });
},
};
hey there! π looking into this now
np! still looking into this, thanks for bearing with us
do you have an example PaymentIntent ID (pi_xxx) where PayPal didn't show up?
Sorry it's MB about this, it's because I haven't added a returnURL since I was trying to only test if it works without the deeplink first π€¦
ah cool!
for the initPaymentSheet question, that is the expected behavior - a successful init doesn't need to return any additional data since the PaymentSheet is just being prepared for presentation
the other data that could/would be returned would just be any errors if the call failed
still looking into the first question
could you share an example PaymentIntent where the image/label were returned as undefined?
The thing is that I use the deferred flow
For example in React.js, I submit the form and check if the values are correct with Stripe SDK elements.submit();
And then I create either a setup intent either a payment intent
So I want to replicate the same behaviour in my React Native app and I need to know which payment the user choosed to create a payment intent with the back-end API (credit card, PayPal etc.)
Without that information, I can't create a payment intent through back-end API
ah I see, so you're manually specifying payment method types
the example in our docs for the deferred flow uses automatic dashboard enabled payment methods, so just checking the best approach
I think the best thing here is for you to write in to us directly, so our team can debug asynchronously and get back to you via email
we'll need to reproduce the issue and do some testing
Hello @magic nebula, we have sent you a direct message, please check it at https://discord.com/channels/@me/1443602278425690224
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Oh okay in how much time will you answer me? π
I received a confirmation e-mail so did it work?
yep we've received your email! we'll provide a status update today, but I can't say for sure about a resolution (depends on how tricky the issue is to debug)
Okay thank you! Just FYI, I'm using this version of the lib: "@stripe/stripe-react-native": "0.52.0"
cool, thanks! I'll close this thread out and reply via email π