#blacknight-badgateway-error

1 messages · Page 1 of 1 (latest)

stray helm
#

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.

lean gazelle
#

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.

stray helm
#

okay so you mentioned paying your users? can you expand a little bit more on that usecase?

lean gazelle
#

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

stray helm
lean gazelle
#

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.

stray helm
#

You can capture the full amount of authorization (unless the final amount is bigger than the authorized)

lean gazelle
#

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.

stray helm
#

ah I see.