#_iapp_technologies_llp

1 messages · Page 1 of 1 (latest)

twin garnetBOT
#

Hello! We'll be with you shortly. 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.

umbral cliff
#

According the requestId you've shared, you didn't included the Stripe-Account header

acoustic flicker
#

Can you please elaborate on how to include the stripe header

umbral cliff
#

How are you retrieving that PaymentIntent exactly? can you share some code snippets

acoustic flicker
#

Okay let me check and send you some code snippets.

umbral cliff
#

This the payment_intent creation request.

#

what about the payment intent fetch/get request ?

#

you are using Terminal right with Ios ?

acoustic flicker
#

Yes

umbral cliff
#

You need to set the Stripe-Account header in both backend and frontend (Ios)

acoustic flicker
#

Okay I am already doing it at frontend

umbral cliff
#

Now it's solved ?

acoustic flicker
#

No still not resolved

umbral cliff
#

Let's focus on the Ios part.

#

Try debug your process and see if you are passing non null value

#

for Stripe Account

acoustic flicker
#

please check this, this is what i am getting when i am hitting fetch connection api

twin garnetBOT
ruby niche
#

@acoustic flicker you need to pass Stripe-Account when creating the ConnectionToken, as was mentioned in the first thread.

#

like \Stripe\Terminal/ConnectionToken::create[[ location ....] , ['stripe_account' => "acct_xxx"]];

acoustic flicker
#

I did this here

#

Can you please check this and let me know what I am doing wrong

ruby niche
#

you're not doing it though

#

you need to pass ['stripe_account' => "acct_xxx"] as the second parameter to that ::create call like I mentioned above.

acoustic flicker
#

I have to pass it here?

#

as the second partner to the location one

ruby niche
#

yes

acoustic flicker
#

Okay thank you let me check ths

ruby niche
#

if you paste the code i'll show you

#

I can't edit your code to show you when it's a screenshot unfortunately

acoustic flicker
#

Okay give me a second

#

\Stripe\Stripe::setApiKey(env("STRIPE_SECRET_kEY"));
$connectionToken = \Stripe\Terminal\ConnectionToken::create([
],['stripe_account' => $request->stripe_id]);

ruby niche
#

you're missing the 'location' parameter in the first [] but otherwise, yes, like that.

acoustic flicker
#

\Stripe\Stripe::setApiKey(env("STRIPE_SECRET_kEY"));
$connectionToken = \Stripe\Terminal\ConnectionToken::create([
'location' => $request->stripe_id,
],['stripe_account' => $request->connected_id]);

#

like this?

ruby niche
#

yes

acoustic flicker
#

Okay let me run this.

#

\Stripe\Stripe::setApiKey(env("STRIPE_SECRET_kEY"));
$connectionToken = \Stripe\Terminal\ConnectionToken::create([
'location' => $request->stripe_id,
],['stripe_account' => $request->stripe_id]);

#

still the same error that no such payment intent found

ruby niche
#

request ID req_xxx from the latest failure?

acoustic flicker
#

Getting error

"connectLocalMobileReader failed: Error Domain=com.stripe-terminal Code=9020 "No such location: 'tml_FXyoSQqVuofePF'" UserInfo={com.stripe-terminal:StripeAPIDocUrl=https://stripe.com/docs/error-codes/resource-missing, com.stripe-terminal:Message=No such location: 'tml_FXyoSQqVuofePF', com.stripe-terminal:HttpStatusCode=404, NSLocalizedDescription=No such location: 'tml_FXyoSQqVuofePF', com.stripe-terminal:StripeAPIRequestId=req_dcCQgSI5ZYcwJR, com.stripe-terminal:StripeAPIErrorType=invalid_request_error, com.stripe-terminal:StripeAPIErrorCode=resource_missing}"

Learn more about error codes and how to resolve them.

#

request id :-
req_dcCQgSI5ZYcwJR

ruby niche
#

that's a different error

#

as you see, the error is that the Location is not found, because you are now using the Connected Account, not the platform. So the Location that you register the Reader to needs to exist on the Connected account instead.

acoustic flicker
#

Can you please guide me how to sort this one out too?

ruby niche
#

yep — the docs page above describes the situation/solutions in detail.

acoustic flicker
#

ok checking