#dmor_terminal-s700
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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1215075913285238814
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
@remote merlin hello1 I'm going to need more specific details about your exact integration and what is not working
Sure thing, what other details would be helpful?
Your exact integration path. There are many ways to integrate Stripe. Your exact code where you try to collect the payment and what is or isn't working
This is how we create the PaymentIntent object
This is what it looks like when created through our UI app
Okay so that's the PI creation. What did you do next? what exact end to end docs are you following?
that's just a picture of a response
We then use the SendPaymentIntentToReader endpoint from stripe to send over the PaymentIntent to the Reader by providing the paymentIntentId and the appropriate readerId. This is the response from that call
We then try to fetch the reader object to check it's status and here is the result from that call
Sorry really struggling to follow with pictures of JSON without much context. What does "we use the SendPaymentIntentToReader" mean? Can you share the exact code you are using in real text as a developer here so I can read it and also the exact doc you are following?
sure, give me a sec
thank you!
also share the exact tmr_123 and pi_123 as text, that will allow me to look at those
dmor_terminal-s700
So here is the documentation we are using
https://docs.stripe.com/terminal/payments/collect-payment?process=immediately
yeah you must have some of the sub-tabs selected, can you tell me exactly which one(s)?
the server-driven tab
SendPaymentIntentToReader doesn't exist anywhere on that page for me
We have a dotnet core backend wrapped around the stripe sdk
Gotcha. Can I ask you to clarify the exact Stripe-related calls so that I can help you?
perfect so you call that API and then you wait for the Reader to be ready and you insert the card and then what?
We have a test card we use when the reader prompts the user to insert payment method
We then try to fetch the reader via the api to check the status using this endpoint in the stripe sdk
GET
/v1/terminal/readers/:id
with id = "tmr_FdmLMgaUXzKXKf"
And this is the response we get
This comes from here
Can I get the PaymentIntent id too?
PaymentIntentId = "pi_3OrTvVR1grjpLK0Q2lUMKju9"
Do you have multiple test cards or only one?
I believe just 1. Let me verify that real quick
can you try with a real card
it's in Test mode so you won't be charged, you'll get an error that it's not a test card. It'll allow us to know if it's a problem with your test card
This is the response that came from the reader:
"Card declined, try a different form of payment"
okay so the reader works fine, looks to be a defective test card
using tap to pay
so you'll have to contact support to get a replacement test card I think
Sounds good. We'll do that and try with a new test card. I'll comment here with updates once we have that in place
I will fully archive this thread so it'll be read-only after that. We don't really need an update and once you talk to our support team they can help you further 1:1.
You're totally welcome to come back if you have a new question in the future though!
Ah ok, so just make another post in the same way if i need more help. Sounds good, thank you