#blacknight-badgateway-error
1 messages · Page 1 of 1 (latest)
Hello 👋
Can you share some more context on your integration? Like how are you creating these charges? Are you using Stripe Connect? If so, can you share the example code for charges that you're creating as well as transfers?
Moving this here for complete context 🙂
I initially tried the refund API but later realized that I can only refund the amount I charged from the user.
I’m currently using the stripe-go packages in my golang back-end code.
Golang has a stripe charges package and I use the chargeParams to send the amount and the stripe customer card details!
This is how i currently charge the customers.
okay so you mentioned paying your users? can you expand a little bit more on that usecase?
It’s basically a car booking company so when the users cancel a trip we charge them a cancellation fee and transfer it to the car owner. Currently I’m able to charge the customer but not able to pay the amount to the car owner from the back-end
ah okay! So you're not actually paying them but only refunding the remaining amount.
Have you looked into placing a hold on instead? https://stripe.com/docs/payments/place-a-hold-on-a-payment-method
That’s just a use case. In other cases I actually have to pay the user like when the trip is completed. I need to pay the amount earned by the car owner for that trip.
You can capture the full amount of authorization (unless the final amount is bigger than the authorized)
Yes but I capture the amount from the user who booked the trip. But I need to pay the amount to the user who owns the car.
ah I see.
I believe you'd want to look into Stripe Connect as this is multiparty payment
https://stripe.com/docs/connect