#alx8523
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Thanks Vanya
Not sure what's Thumbtack.
Do you mean you want to charge the customer first as a Platform, and then trasfer a portion to the provider (Connected account) immediately, and then the rest, after the job is completed?
No, so what I am trying to achieve is. A Customer (job poster) posts a job. A worker sends an offer to the job poster. Job poster accepts the job offer (and makes the payment). The worker proceeds to work & finish the job. Once the job is finished the worker informs the job poster and job poster then proceeds to mark the job as complete (& payment is released at this point).
I hope this helps
- Job poster accepts the job offer (and makes the payment) - create and confirm the PaymentIntent.
- Once the job is finished the worker informs the job poster and job poster then proceeds to mark the job as complete - create a Transfer to the Connected account.
Basically what I said but without step 2.
I am sorry for keeping you on asking questions, but is this correct for Step 1?
amount=int(Decimal(str(offer.price)) * Decimal("1.2") * Decimal("100")),
currency="ron",
transfer_group="Job" + str(offer.job.id),
)```
ie. Does Step 1 put the money in the Platform's Stripe account?
Yes
Thank you
Thank you very much. For step 2, is this the correct code?
stripe.Transfer.create(
amount=(90% to the worker),
currency="ron",
source_transaction = {{PAYMENT INTENT ID FROM STEP 1}}
destination="{{WORKER'S CONNECT STRIPE ACC ID}}",
transfer_group="Job" + str(offer.job.id),
)
source_transaction is not required if you got transfer_group, but yes, this looks good.
I want to use source_transaction so the payment to the worker is made only when money is 100% available from the job poster. So if i was to do that, should source_transaction reference payment intent id from Step 1?
Thank you Vanya
What do you mean by "100% available"?
You can either use source_transaction or transfer_group
Sorry, i mean if the job poster's payment has been cleared in the platform's account
If you don't use any, you won't be able to do the transfer until the balance is available in your Platform balance, but that might take a few business days.
If you use one of those params, you will be able to transfer the funds to your connected account immediately (or whenever you want).
Happy to help!