#than-jack_code

1 messages · Page 1 of 1 (latest)

fringe juncoBOT
#

👋 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.

cedar wind
opal radish
cedar wind
#

yes

opal radish
#

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.

cedar wind
#

What's the PayemntIntent ID?

opal radish
#

here is it: pm_1Pi6hwD9g4HiiDZi92UyFHe9

cedar wind
opal radish
#

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}, });

cedar wind
#

and what does "profile?.company_name" resolve to?

#

Also shouldn't you put quoation marks around the description string?

opal radish
#

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

cedar wind
#

I'd suggest you to put some logs in your applicaiton to confirm the value that "Payment to ${profile?.company_name}" resolve to.

opal radish
#

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?

cedar wind
#

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?

opal radish
#

I used the Stripe Terminal RN SDK version 0.0.1-beta.18

cedar wind
#

Try using the latest version

opal radish
#

Thank you, let me try it