#jay-s
1 messages ยท Page 1 of 1 (latest)
Hey there, can you elaborate on what you mean exactly?
getting them into my platform account to make a charge
I'm not sure i understand
When you accept a payment that takes some time to become available, you can use source_transaction to set up transfer for your connected accounts before the payment balance is available
You can do this immediately following the payment
yes! when there is an ach credit transfer to one of my source, I want to calculate the fees for the transfer and forward a portion of the transfer to the connected account. Currently we do it via creating a new payment intent for the connected account using the source as a source for the amount to be withdrawn from. Now we want all the amount that is deposited to go directly to platform account first and then from platform account to connected account.
But from what it seems like, that the ach credit transfer to our source would eventually be deposited into the platform account (correct me if I'm getting this part wrong). and we'd be able to make new transfers from platform account to connected account directly. Does that sound right?
Hi there ๐ taking over, as my colleague needs to step away
That's done via a flow Stripe created called "Separate Charges and Transfers" (creative, I know): https://stripe.com/docs/connect/charges-transfers
Hi ๐ , yes I was looking into it but I was wondering for the initial payment intent that is created in the docs how could I use the source that we received an ach transfer.
# ... Ommited for brevity
# Create a PaymentIntent:
##### NOTE #####
##### THIS IS THE PAYMENT INTENT I'M TRYING TO CREATE USING THE SOURCE #####
payment_intent = stripe.PaymentIntent.create(
amount=10000,
currency='usd',
payment_method_types=['card'],
transfer_group='{ORDER10}',
)
# ... Ommited for brevity
From my understanding it seems that we need a customer to charge if we create a payment intent using a source.
Are you creating a new integration? Or building off of an old integration that's already using sources?
we're modifying the existing one to support refunds from connected accounts as our current system doesn't allow for that.
Ah, okay I see. So you would need to attach the Source to a Customer object: https://stripe.com/docs/api/sources/attach
Then you can use the payment_method attribute on your Payment Intent when it is created: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.