#than-jack_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/1267696942075613184
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, that's for the PaymentIntent description. Here's the relevant code: https://github.com/stripe/stripe-terminal-react-native/blob/main/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt#L391
May I ask if the PaymentIntent description is the same as the description parameter here https://docs.stripe.com/api/payment_intents/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes
Thank you. But when I tried to add the stripeDescription to the createPaymentIntent function, I can see that the Stripe generated receipt didn't change the Payment to ... part like this sample receipt.
What's the PayemntIntent ID?
here is it: pm_1Pi6hwD9g4HiiDZi92UyFHe9
https://dashboard.stripe.com/test/logs/req_zLPPQdc43hJIsv I don't see you set any description in the request
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Here is my completed body for the createPaymentIntent function. Did I do anything wrong here?
createPaymentIntent({ amount: amount, currency: 'aud', paymentMethodTypes: paymentMethods, customer: stripeCustomerId, transferGroup: groupTransfersName, captureMethod: 'automatic', metadata: {}, stripeDescription: Payment to ${profile?.company_name}, });
and what does "profile?.company_name" resolve to?
Also shouldn't you put quoation marks around the description string?
It is the user's company, i want to replace it for the default Payment to my Stripe account description in the receipt. Yes, I put the quotation mark around the stripeDescription string, but Discord format it as a text of code
I'd suggest you to put some logs in your applicaiton to confirm the value that "Payment to ${profile?.company_name}" resolve to.
Hi @cedar wind, I have tried it with my RN iOS app and it worked. Is there any issue related to the RN Android SDK?
Hmm, based on the code that I shared earlier, stripeDescription will be used as PaymentIntent's description.
Have you updated to the latest version of Stripe terminal react-native SDK?
I used the Stripe Terminal RN SDK version 0.0.1-beta.18
Try using the latest version
Native SDKs upgraded to 3.7.0 for iOS and 3.7.1 for Android.
iOS changelog: https://github.com/stripe/stripe-terminal-ios/blob/master/CHANGELOG.md#370-2024-06-24
Android changelog: https://github....
Thank you, let me try it