#BarrelRider
1 messages · Page 1 of 1 (latest)
Yes, the issue is that you're passing in an empty string for payment_intent - you'd need to look through your own code to understand why you're passing an empty string there
I did look around a bit and I do have a theory - Do you know maybe if user pays for the subscription in full by the money they have in user credit balance - would that then cause the payment intent to not be issued?
If so could you point me into the right direction of how do I deal with such a refund?
If an Invoice doesn't require payment (which would be the case if the credit balance bring the amount below the minimum) then a PaymentIntent won't be created
You'd need to find a different payment for that customer and give them a refund through that
gotcha or I can just handle this specific case manually and just go for a payout from dashboard right?
Also one last thing to confirm - payment_intent will be created if the user paid only part of the price from balance but balance was not enough and user still had to use the card, is that correct?
So in other words if the amount paid by user has been reduced by what was in the balance.
You'd only be able to do a payout if this was a connect account - otherwise payouts aren't a thing you can do
Yes, a payment intent will still be created if only part of the invoice was paid down from their balance
oh so then I need to ask - I suppose I will always have a different payment as every new customer has 0 balance when they first sign up with me, and new user has to pay with card but what happens if for some reason I don't have any other payment? Is there any other way I can refund the money to original payment method?
Is that error happens, can I simply just refund user manually still?
I mean via the dashboard
There shouldn't be a scenario where you don't have any other payment unless you explicitly chose to give them the credit balance without charging them for it first
Yeah, this is what I am thinking, I will always have one because I will definitely not top up any account from the beginning.
So in fact I will have to refund completely different purchase/payment, isn't that in conflict with some law or Stripe rules, while I understand the situation it looks kinda shady?
Nope, it shouldn't be an issue
ok then, backup payment intent it is, thanks Karbi, have a nice evening
👍 you too!