#mnmalikdev_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ 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/1301630927448969216
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ is your Platform account based in the US?
Gotcha. I think you're looking for our Cross-Border Payouts flow then:
https://docs.stripe.com/connect/cross-border-payouts
Where you'll use the recipient service agreement, and only request the transfers capability for the Connected Account:
https://docs.stripe.com/connect/service-agreement-types#choosing-type
Actually our users should be able to use card payments . if I request transfers only, will they be able to make payment frmo their credit/debit cards like now?
heres the full code thouh
async createConnectAccount(createConnectAccountDto: CreateConnectAccountDto) {
const account = await this.stripe.accounts.create({
type: 'express',
country: createConnectAccountDto.countryPrefix, // country
email: createConnectAccountDto.email, //email
capabilities: {
card_payments: { requested: true },
transfers: { requested: true },
},
settings: {
payouts: {
schedule: {
interval: 'manual',
},
},
},
business_type: createConnectAccountDto.businessType, //business type
business_profile: {}, //business profile
company: {}, //company information
...(createConnectAccountDto.countryPrefix === 'US'
? {
tos_acceptance: {
service_agreement: 'full',
},
}
: {}),
});
// update the user in the database
if (account.id) {
await this.userService.updateUserConnectAccountId(
createConnectAccountDto.email,
account.id,
);
}
return {
status: 200,
message: 'Connected account created successfully',
data: account,
};
}
if I request transfers only, will they be able to make payment frmo their credit/debit cards like now?
Who is "they" in that scenario. Your Connected Accounts or their customers?
by they i meant connected accounts
Connected Accounts don't make payments, they receive them.
I see. let me explain the use case a bit more so you can guide me better
-
User A which is a buyer comes on our platform and after signs up , onboards himself (creates a connect account on our platform).
-
After his onboarding is complete, he creates a contract and in order to initiate it and send to seller (User b) he needs to pay an amount. that amount is going to be stored in escrow of seller connect account. This amount is done by card payment.
-
once contract is complete, seller delivers, we release the amount/money with the payout api for the seller.
The current bug is that hen we are on-boarding someone, if he does not choose country as USA while onboarding, he gets an error which is
"you cannot request card_payments capability for accounts in NG "...
Please note both buyer and seller here is acting as a connect account with our platform
Okay, but the buyer's connect account isn't involved in them buying something, right? Instead you create a Customer object to represent the buyer and collect their payment method details?
If i have understood your question right, Yes they are since they are making a card payment and for that we first onboard them as a connected account.
Connected Accounts don't make payments, Customers do.
Connected Accounts receive payments.
The card_payments capability is for letting your Connected Accounts accept card payments.
I see...
Have you taken a look at our guides for processing a payment for a Connected Account and decided on a charge structure to use for your flow?
https://docs.stripe.com/connect/charges
Thanks for the help.
I will go thorugh it and get back to you with a better understand and more questions tomorrow
Any time! We'll be here