#jessecertain_api

1 messages ยท Page 1 of 1 (latest)

empty rampartBOT
#

๐Ÿ‘‹ 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/1288587136580452403

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

ruby bladeBOT
woven ibex
#

๐Ÿ‘‹

#

Looks like you are calling the API directly?

#

Highly recommend using one of our client libraries

#

That said, taking a look.

#

Hmm definitely a bit strange as from looking at the request the path looks fine...

#

Can you show me your code for how you are making this request?

wild kindle
#

Sure, if that's helpful,

local.handoffRequest.setURL('https://api.stripe.com/v1/terminal/readers/#local.readerId#/collect_payment_method');

    local.handoffRequest.setMethod('POST');
    local.handoffRequest.setCharset('utf-8');

    local.handoffRequest.addParam(type="header", name="Authorization", value="Bearer #local.txtStripePrivateKey#"); 

    local.handoffRequest.addParam(type="formfield",name="payment_intent",value="#local.paymentIntentId#");

    local.handoffResponse = local.handoffRequest.send().getPrefix();
woven ibex
#

Thanks

#

Okay sorry @wild kindle

#

So this endpoint is still in beta

#

So that's what you are seeing that error. Your account likely isn't configured yet for it

wild kindle
#

Aha

woven ibex
#

So you can request access there in the docs and then if you want you could also reach out to our Support team about this via https://support.stripe.com/contact/login and see if they can help you get access to the beta

wild kindle
#

Thanks very much

#

Looking at that documentation, it looks like I should be using the process_payment_intent endpoint to handoff the payment intent to the reader in any case

woven ibex
#

That is the public endpoint so if that is what you need then you should be all set

wild kindle
#

I guess I misunderstood "Initiates a payment flow on a Reader." in the API documentation.

#

I'll give that a try.

woven ibex
#

๐Ÿ‘

wild kindle
#

Thanks again!