#mattiaferrari_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/1389182442472210463
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mattiaferrari_code, 3 days ago, 38 messages
- mattiaferrari_code, 4 days ago, 53 messages
- mattiaferrari_code, 6 days ago, 49 messages
hi there!
hi
you are creating the PaymentIntent in .NET?
Nope this is the stripe terminal java/kotlin sdk
the payment intent is created from the on device app in the client
the payment intent is created from the on device app in the client
the PaymentIntent need to be created from the backend.
I'm a bit confused about your flow. can you share more details on what exactly you are tying to do?
Ok
I have the app deployed on the terminal device
the terminal is authenticated with the connection token retrieved from my backend
once my merchants that have a connected account insert an amount in the app, the app creates a payment intent
From what i see here the intent is created on the client
yes, you are right, sorry about the confusion.
are you creating a Direct Charge, a Destination Charge, or a Separate Charge & Transfer?
the thing that i m missing is how to set the connected account id from this create payment intent client call
are yuo creating a Direct Charge, a Destination Charge, or a Separate Charge & Transfer?
I am still testing
Im trying with direct in this case
I found an example here for a Destination Charge: https://docs.stripe.com/terminal/features/connect?terminal-sdk-platform=android#destination-payment-intent-client-side
val params = PaymentIntentParameters.Builder()
.setAmount(1000)
.setCurrency("usd")
.setOnBehalfOf("{{CONNECTED_ACCOUNT_ID}}")
.setTransferDataDestination("{{CONNECTED_ACCOUNT_ID}}")
.setApplicationFeeAmount(200)
.build()
how much does it change using direct vs destination from the code perspective
how much does it change using direct vs destination from the code perspective
if you use a Direct Charge, you need to use the Stripe-Account header to set the account ID https://docs.stripe.com/connect/authentication#stripe-account-header
Mhh but isn't that header a server side only thing?
I don't know how to set that header from the java client
not sure either, looking.
can you try something like this:
val params = PaymentIntentParameters.Builder()
.setAmount(1000)
.setCurrency("usd")
.setApplicationFeeAmount(200)
.setStripeAccount("acct_xxx")
.build()
looking into this
wait, there is some informaiton about this here:
When creating a PaymentIntent client-side for direct charges, you don’t need to specify any additional parameters for the PaymentIntent. Instead, when creating a ConnectionToken, set the Stripe-Account header to the connected account accepting payments. The client SDKs create the PaymentIntent on the same connected account the ConnectionToken belongs to. For more information, see Create PaymentIntents Client-side.
https://docs.stripe.com/terminal/features/connect?terminal-sdk-platform=android#direct-payment-intents-client-side
Ahhhhh
Ok thats good
One last thing
Reguarding the most recent thread that i opened, the one about the terminal app review
I couln't wait for the stripe support to respond to my email so i made a post in the stripe subreddit
https://www.reddit.com/r/stripe/comments/1lmv4yi/help_with_stripe_terminal_on_device_app/
A random guy responded to me like this, so i sent another version of my app for the review
It would be nice if this flow could be added to this documentation page https://docs.stripe.com/terminal/features/apps-on-devices/app-review