#_iapp_technologies_llp
1 messages · Page 1 of 1 (latest)
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.
- _iapp_technologies_llp, 1 hour ago, 32 messages
According the requestId you've shared, you didn't included the Stripe-Account header
Can you please elaborate on how to include the stripe header
How are you retrieving that PaymentIntent exactly? can you share some code snippets
If you are using Ios, you need to follow this:
https://stripe.com/docs/connect/authentication?client=create-client-ios#stripe-account-header
This the payment_intent creation request.
what about the payment intent fetch/get request ?
you are using Terminal right with Ios ?
Yes
You need to initialize your Terminal SDK following this:
https://stripe.com/docs/connect/authentication?client=create-client-ios#adding-the-connected-account-id-to-a-client-side-application
You need to set the Stripe-Account header in both backend and frontend (Ios)
Okay I am already doing it at frontend
Now it's solved ?
Let's focus on the Ios part.
Try debug your process and see if you are passing non null value
for Stripe Account
please check this, this is what i am getting when i am hitting fetch connection api
@acoustic flicker you need to pass Stripe-Account when creating the ConnectionToken, as was mentioned in the first thread.
When connecting to a reader with connection token, it should be created with Stripe-Account header, so that the subsequent requests made by terminal will then include Stripe-Account header: https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=ios#connection-token-server-side
like \Stripe\Terminal/ConnectionToken::create[[ location ....] , ['stripe_account' => "acct_xxx"]];
I did this here
Can you please check this and let me know what I am doing wrong
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.
yes
Okay thank you let me check ths
if you paste the code i'll show you
I can't edit your code to show you when it's a screenshot unfortunately
Okay give me a second
\Stripe\Stripe::setApiKey(env("STRIPE_SECRET_kEY"));
$connectionToken = \Stripe\Terminal\ConnectionToken::create([
],['stripe_account' => $request->stripe_id]);
you're missing the 'location' parameter in the first [] but otherwise, yes, like that.
\Stripe\Stripe::setApiKey(env("STRIPE_SECRET_kEY"));
$connectionToken = \Stripe\Terminal\ConnectionToken::create([
'location' => $request->stripe_id,
],['stripe_account' => $request->connected_id]);
like this?
yes
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
request ID req_xxx from the latest failure?
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}"
request id :-
req_dcCQgSI5ZYcwJR
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.
you need to carefully read through and understand https://stripe.com/docs/terminal/features/connect , you are trying to use Terminal with Direct Charges in this case.
Can you please guide me how to sort this one out too?
yep — the docs page above describes the situation/solutions in detail.
ok checking