#Shivam Kumar

1 messages · Page 1 of 1 (latest)

hazy flickerBOT
plush zodiac
#

Hi there!

#

This is creating a Direct Charge. So technically you can do this with a custom account, but I would strongly recommend against this.

#

Beacause it's the connected account that would be responsible for refunds and disputes, but since it's a custom account, there's no available UI for them to manager this.

strange herald
#

Hii I am working on a rental site for renter side I am using platform account and for landlord I am using stipe custom connected account , which account type best for landlord they can receive payment.

plush zodiac
strange herald
#

$stripe->accounts->create([
'type' => 'custom',
'country' => 'US',
'email' => 'jenny.rosen@example.com',
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],
]);
can we create express and standard account using this code?

plush zodiac
#

The code you shared is to create a custom account: 'type' => 'custom'.

strange herald
#

Can I use this same code in other than custom type?

plush zodiac
strange herald
#

I want use same but I change 'type' => 'custom', to express this will works?

plush zodiac
#

Please read the links I shared above, they explain how to create Standard and Express account, which is quite different than Custom accounts.

fair spire
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

strange herald
#

$payment = $stripe->paymentIntents->create(
[
'amount' => $request->amount * 100,
'customer' => 'cus_O4df7NrSndPNIf',
'currency' => 'usd',
'payment_method' => 'pm_1NIUQJR24ZScjDb6mrgvSKtO',
'automatic_payment_methods' => ['enabled' => true],
],
['stripe_account' => 'acct_1NIUHrR24ZScjDb6']
);

why i getting this error
The PaymentMethod provided (us_bank_account) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "us_bank_account".

fair spire
strange herald
#

req_KOdJufy1OWIXP0

fair spire
#

taking a look

strange herald
#

?

fair spire
#

still looking

#

the us_bank_account payment method is not configured on the Connected Account

#

ACH is off by default

strange herald
#

\Stripe\Transfer::create([
'amount' => 1000,
'currency' => 'usd',
'destination' => '{{PLATFORM_STRIPE_ACCOUNT_ID}}'
], [
'stripe_account' => '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
]);

what is PLATFORM_STRIPE_ACCOUNT_ID is here?

fair spire
#

your main account ID

strange herald
#

$stripe->transfers->create(
[
'amount' => 1000,
'currency' => 'usd',
'destination' => '{{CONNECTED_ACCOUNT_ID}}',
'transfer_group' => '{ORDER10}',
],
['stripe_account' => '{{CONNECTED_ACCOUNT_ID}}']
);
and this code for transfer funds between two CONNECTED account?

#

Please help me , I am working on a rental site , I want to renter can make payment and landlrod can accept payment what I use I am confused.

fair spire
#

where are you getting these codes from?

#

which doc?

strange herald
fair spire
#

what are you trying to accomplish?

#

forget about the code for a second

strange herald
#

How can customer make payment with in connected account.

fair spire
#

not sure I follow

strange herald
#

I am using this code but not works
$payment = $stripe->paymentIntents->create([
'amount' => 1000,
'currency' => 'usd',
'customer' => 'cus_O4ca9Xx4cqkzxV',
'payment_method' => 'pm_1NITPhR7SbLLaYoV4tB2hJ20',
'payment_method_types' => ['card', 'us_bank_account'],
'transfer_data' => ['destination' => 'acct_1NCe8xR7SbLLaYoV'],
]);

fair spire
#

did you activate the ach debit

#

payment method type

#

in the dashboard

strange herald
#

Yes

tranquil moss
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

strange herald
#

req_ZkIH5SFgvg4tPA

tranquil moss
#

Are you using Stripe Connect?

strange herald
#

yes

#

I want how can customer pay to connect account?

tranquil moss
#

It seems like you customer lives on the Connected Account, that's why you cant access it from the Platform

#

What kind of Connected accounts you have? Standard/Express/Custom?

strange herald
#

custom

tranquil moss
#

Then you need to create the Customers and Payment Methods on your Platform

strange herald
#

req_embt0jjjYVuXaJ also check this why showing payment status Incomplete?

tranquil moss
tranquil moss
strange herald
tranquil moss
strange herald
#

Ok I attech a payment method but I got error you can check this
req_yuewpuDe7oJUkE

tranquil moss
strange herald
#

$stripe->paymentIntents->create([
'amount' => 1000,
'currency' => 'usd',
'automatic_payment_methods' => ['enabled' => true],
'transfer_data' => [
'amount' => 877,
'destination' => '{{CONNECTED_ACCOUNT_ID}}',
],
]);
where I pass customer id and and their payment method id

tranquil moss
#

You can pass it to the create() method parameters. But you need to make sure that PM and Customer objects live on the Platform.

tranquil moss
strange herald
#

what mean of objects live ?

tranquil moss
#

Objects like Customers, PaymentIntents, Payment Methods etc. are created and used only on a specific Stripe account. So if one object was created on your Custom account, it can't be used on the Platform account, and vice versa