#shikha-paymentintent-help
1 messages ยท Page 1 of 1 (latest)
I have an application which is integrated with stripe for payouts. They are around 100+ host accounts. I want to manually send payout to one of thr host account through stripe . My platform is UK and the host account is US
Hello ๐
Hmm I don't think cross-border payouts are supported in the UK yet
Its only supported in the US unfortunately
https://stripe.com/docs/connect/cross-border-payouts
I was said it is possiblr through destination charges?
To send payment from UK to US account
Do you mean direct charges? Destination charges is when the funds settle on the platform.
Direct charges is when the funds settle on the connected account (the host account in US)
What is connected accounts?
I jsut want to select a host account which is in US enter certain amount and send it to the host bank connected to stripe.
What you are referring to a "host account in the US" is probably a connected account that your platform based in the UK created
If you're using destination charges, then the funds settle on the platform account (in the UK) and in order to send the funds to US, cross-border payouts need to be available which is only available in the US.
If you're using direct charges, then the funds settle on the connected account (in the US) and then your platform gets the application fee. Cross-border payouts aren't needed here.
It depends on the type of connected account your platform creates. If you're creating standard accounts then yes, you can use direct charges
Where will I find this information in my stripe account mm
Typr of connected account
So that I can share it with you
๐ Hoping in since hanzo has to head out son
How are you creating the connected accounts? If you're creating them through the API then you would be passing in which type of connected account you're creating
If you specified express when you created the account then yes, that would be the type of account you're creating
This
We used code of destination charges and it gave error as no valid payment method types for this payment intent. Pleade ensure you have activated payment methods compatible with chosen currency in dashboard
Can you share a specific request ID that resulted in the error that I can take a look at?
Checking
Stripe.StripeException: 'No valid payment method types for this Payment Intent. Please ensure that you have activated payment methods compatible with your chosen currency in your dashboard (https://dashboard.stripe.com/settings/payment_methods) or specify payment_method_types'
We used this
I mean we followed this
Yeah can you share a specific request ID? Like req_123?
Where will I find request ID?
You should be able to find it in your dashboard request logs https://dashboard.stripe.com/logs
Yup that works - give me a minute to take a loko
Sorry was still looking - why are you doing such a low amount (you set amount: 1)? The reason you're getting these errors is because none of the payment method types you've enabled for your connected accounts (https://dashboard.stripe.com/settings/payment_methods/connected_accounts) can accept payments for amounts that low
How can I enable it?
I am sending low amount as this is test purpose
Pls tell me how to enable
If you're testing you should be using test mode, using your test API keys so you dono't have to worry about using such a low amount like this
Not allowing om test mode
In the link you shared cards popular globally is on by default...whay else should I add to enable?
Cards is on by default
That banner is just saying that the changes you make in test mode won't also apply in live mode (you'll need to change them separately)
Please try this in test mode with a higher amount - you should see it working if you do that
For stripe account is UK
So for stripe account UK which payment method should I enable?
How do I change?
That's up to you - you can enable whichever payment method you want
But again, if you're testing this out you should be trying this out in test mode so that you can specify a higher amount
And that should allow you to do a test payment with a card
Why do you need to add funds? If you're testing a payment with a card you shouldn't need to add funds at all
Let's pause here for a mi nute
This app is complicated
What specifically are you trying to test right now? A plain transfer from one connect account to another? A destination charge?
A plain transfer from my UK stripe account to a US host account payout
My Uk Stripe account belongs to an organization
Host here are the ones who publish their property ajd receive payouts by us
Gotcha - so if that's what you're trying to test then that's impossible - hanzo mentioned this earlier but there's no way to do a cross border payout/transfer from a UK account to a US account like that
The ONLY way to move funds from a UK account to a US account would be through a destination charge, which doesn't involve adding funds at all
We walk through the different way to do that here (https://stripe.com/docs/connect/destination-charges) - you had it mostly right in the example request you had earlier (req_TYnsueJNn3uoen) but you need to change a couple of things:
- you need to set
on_behalf_ofto the connect account
- you need to do this in test mode
- and you need to specify a higher amount like
100
On_behalf should we set as property or how?
Where do I set it? Where can I find this? For that particular user should we check from API side or connect account?
Yes on_behalf_of is just a property you set as part of the request
You need to set it to the connected account ID
YOu should set it to the connected account ID
Onbehalfof="account ID" is this right?
Account Id is user account ID to which we will transfer fund or the account from where we transfer fund?
It should be the account that funds are being sent to
Ok checking
How would I know if its successful?
I mean if amouny is sent?
I checked in log it says 200 ok.
Status is 200 ok
Request Id Is req_cZTsVxnPU9ur1H
??
Requires_payment got something llike this
Are u there sir/mam?
???
๐ I'm here - just helping multiple people at once
Yeah, so now you actually have to finish payment - have you already used PaymentIntents before?
If you just want to test this out then you can confirm the payment intent (https://stripe.com/docs/api/payment_intents/confirm) and set payment_method: pm_card_visa
But generally if you want to build a live mode integration you need to read our docs on accepting payments (https://stripe.com/docs/payments/accept-a-payment) so that you can build an actual integration that accepts payment details
That's somethign you have to implement - so it's up for you to decide what it should be
Typically it'd be somethign like a "success" page that you build
Ok checking
Got 400 err
It says you must provide return url
We gave return url as https://www.jstay.com
Status says required_action
Requires action
Ah, you must be in a country that requires additional actions for card payments to complete
We gave payment method as PM_CARD_VISA
I thought you were working with a UK and US account, are you not?
Let me check something - one minute
var options = new PaymentIntentConfirmOptions { PaymentMethod = "pm_card_visa", ReturnUrl="our url", }; var service1 = new PaymentIntentService(); service1.Confirm( "pi_3N5XAAFoy9D4f3Ja1M9Knmo5", options);
???
3DS is being triggered because you have it enabled in ALL situations (https://dashboard.stripe.com/test/settings/radar/rules?startDate=2022-11-07&endDate=2023-05-07) - when it's recommended, required, and supported
If you only enabled it when it was required you wouldn't be getting the required_action here
but pausing here for a minute
Did you read through the accept a payment docs (https://stripe.com/docs/payments/accept-a-payment) I sent over?
Not yet I am still trying on test mode
Right now you're skipping over a lot of this because you're just testing, but all of these scenarios are things that can still happen when you buildyour real integration
The flow you're using to test things out won't be enough to actually successfully build a full integration
Can u guide me with the flow then?
I know I am missing out on steps
If u guide me properly
The docs (https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements) go through the full flow much better than I could. I would really suggest reading through it fully first and then come back if there's anything specific you don't understand
Okay i will check
shikha-paymentintent-help
Why cannot we manually do it without changing API code?
I mean manually send it from Uk To US ACCOUNT payout
Without changing API code
๐ @grave flame ! I'm taking over and i'm happy to help here but you first need to take the time to read through our docs carefully and try things on your own and ask clear and detailed questions about what you have tried and what does or doesn't work.
For host payout through stripe manually having UK ltd why cannot I manually transfer to US directly?
My colleague already explained and gave you the docs to start with
I jsut want to know why not directly through stripe
Why do I need to modify code and all
As a customer I shud b allowed to send payouts irrespective of the platform or account type
Flow I will check...need answer to my general question.
I'm sorry but I can't really help with vague questions like this. It looks like you want to talk about the flow of funds and what is and isn't allowed. In that case, you'll want to talk to our support team directly: https://support.stripe.com/contact they can talk about your business model, where your platform is set up, where your connected accounts live and what can and can not be done.