#gerardo.britez-customer-cash-balance

1 messages Β· Page 1 of 1 (latest)

hidden needleBOT
velvet bobcat
#

Hi πŸ‘‹ can you share the ID of the request (req_123) that returned that error?

silver oxide
#

hello
req_2WZ5uLO1LLRIU4?t=1675867353

velvet bobcat
#

Thank you! I'm not currently seeing a cash balance on that Customer that is available to be used. The Customer's cash balance is distinct from their credit balance, and is related to accepting bank transfers:
https://stripe.com/docs/payments/bank-transfers

Your account doesn't appear to be in a region that currently supports bank transfers.

#

gerardo.britez-customer-cash-balance

silver oxide
#

to use customer_balance as payment method, do I have to use Bank_Transfer?

balance is charged to customer, but I still get the same error

+"id": "cus_NJcbc9oMYwdjCF"
+"object": "customer"
+"account_balance": 10000
+"address": {#2701
+"city": "city"
+"country": "US"
+"line1": null
+"line2": null
+"postal_code": "1231asd"
+"state": "state"
}
+"balance": 10000

velvet bobcat
#

Yes you do. Sorry, I don't think I understand what that code snippet is trying to show.

silver oxide
#

Can the customer_balance be used as a payment method?

bronze drum
#

Good question, looking in to this and whether we have more informative docs on this.

silver oxide
bronze drum
#

Can you tell me more about why you are looking to create intents for this specific payment method?

silver oxide
#

Yes, the idea is to create subscriptions for customers who are outside the financial system.
The idea that they recommended to us was to use gift cards, and use customer_balance in stripe to charge credit to the customer, then use customer_balance as a payment method.
then they recommended:

  1. Create the customer account and add a customer balance
  2. Create the payment_intent with the customer balance as the payment method

but I got that error that I commented at the beginning.

velvet bobcat
#

They may have been referring to the Customer's credit balance rather than their cash balance. You can adjust the customer's credit balance directly, and that balance is automatically applied to the next finalized Invoice for the Customer so it should work well with our Subscriptions.

I'm not clear on how gift cards factor into this flow, but assume that part is outside of what would happen in Stripe?

silver oxide
#

OK, the Customer'sCredit , can it be used to generate an invoice?
How do you create a CustomerCredit?
because we need to generate subscription + invoice, with customerCredito or CustomerBalance, whichever is possible, without cards or bank accounts

yes, the giftcards are off stripe.

velvet bobcat
silver oxide
#

when wanting to create a new subscription and pay the invoice
returns me this:
"message":"Cannot charge a customer that has no active card","param":"card"
Do you need to configure something so that it takes only from the balance?

req_dyHnk8AckmZUHB?t=1675873632

velvet bobcat
#

That Invoice already consumed the entire credit balance when it was finalized, the Invoice is still open because there was not enough balance to fully cover the amount the Invoice was charging for.

silver oxide
#

ok, I'll do another test with smaller amounts and more balance

silver oxide
#

Now generate a subscription with an invoice and an amount of 500.
I charged the customer 9050 balance, but it keeps giving me the same error "You can't charge a customer who doesn't have an active card"

#

req_jX0VIuKdavpy87?t=1675875742

frozen imp
#

πŸ‘‹ stepping in

#

Taking a look

#

So it looks like you applied a debit balance to the invoice which made it more expensive

#

Is that what you meant to do?

#

Or you wanted to apply a credit balance to pay for the invoice?

silver oxide
#

apply a credit balance,
So I have to load the balance with a negative amount?

frozen imp
#

How are you "loading the balance" currently?

silver oxide
frozen imp
#

Then yes

#

Notice how in the sample it uses a negative value

silver oxide
#

yes, it worked for me
thank you so muchπŸ₯³