#_iapp_technologies_llp

1 messages · Page 1 of 1 (latest)

lusty valleyBOT
sour heart
#

What is the issue you're facing? Can you share the request ID (req_xxx) with the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request

kind swallow
#

I actually wanted to know how to capture the payment intents in case of Direct charges.

The payment intents are being created under the sub account and I am not able to capture that payment intent directly.

I have tried to capture it from the backend and feed to frontend but it doesn't seems to work.

Here is a code snipped attached with the mail for your reference.

Following is the error that I get while trying to capture the intent:
"No such payment intent found"

Checking at the dashboard I can see that it is created in the connected/sub account.

Please let me know how to sort this out.

sour heart
#

If Stripe-Account header is not included, it will look for the Payment Intent created on the platform instead of connected account

kind swallow
#

Ok I will check

kind swallow
#

HI

#

I have checked this docs and we are doing the same but still facing the same issue
Here is the code in :

STPAPIClient.shared.stripeAccount = UserDefaults.standard.value(forKey: userDefaultKeys.stripeId) as? String
The Stripe account id for connected account which I have get is -- acct_1OOZpk4KoI9LVzqM

#

we are also trying to create payment intent with stripe-account

sour heart
#

Can you share the code which you attempt to capture the Payment Intent? I don't see the code of capturing a Payment Intent in the screenshot

#

The screenshot is only Payment Intent creation, which is correct

kind swallow
#

Sure please allow me a few minutes.

#

Here is the code

#

In the below SS we are capture the payment intent using the Terminal method

-->> Terminal.shared.retrievePaymentIntent(clientSecret: "clientSecret") { retrieveResult, retrieveError in

sour heart
#

Can you share the request ID (req_xxx) of the error which the payment intent capture failed? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request

None of the above code is related to capturing a payment intent. Capturing a payment intent should be done at server, not a iOS SDK: https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=ios#capture-payment

Prepare your application and backend to collect payments using Stripe Terminal.

kind swallow
#

Okay I will check

#

Further need to confirm How to retrieve payment intent with sub account id in iOS,
we are using this code, in this code it retrievePaymentIntent does not allow me to send connected/sub account id in parameter

#

and when I retrieve payment intent using this code it give me error :-
No such payment intent found, when I check payment intent on dashboard of stripe It is created in connected/sub account

sour heart
#

It sounds like the "No such payment intent found" issue is on retrieval instead of capture. Am I right to understand you would like to find out how to retrieve Payment Intent on Direct Charges from iOS SDK?

kind swallow
#

Yes

sour heart
kind swallow
#

Checking this

#

I have checked this docs we are doing the same as we shared the SS of code but still facing issue in retrieve payment intent at iOS side

#

Please guide me ho to overcome this'

sour heart
#

Can you share the request ID (req_xxx) of the "No Payment Intent found" error, so that I can check if you're making the request to the correct connected account ID? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request

#

It's also possible that you create the payment intent on connected account A, but trying to retrieve it from connected account B

kind swallow
#

let me check

#

Request id :-
req_Qd8QbzhQDnArSI

sour heart
#

Thanks for sharing! In https://dashboard.stripe.com/logs/req_Qd8QbzhQDnArSI, the Stripe-Account header is not included in the request.

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

Set up a Stripe Terminal SDK or server-driven integration to accept in-person payments.

kind swallow
#

ok checking this