#gerardo.britez-customer-cash-balance
1 messages Β· Page 1 of 1 (latest)
Hi π can you share the ID of the request (req_123) that returned that error?
hello
req_2WZ5uLO1LLRIU4?t=1675867353
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
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
Yes you do. Sorry, I don't think I understand what that code snippet is trying to show.
how do you create a cash_balance?
here does not inform
https://stripe.com/docs/api/cash_balance
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can the customer_balance be used as a payment method?
Good question, looking in to this and whether we have more informative docs on this.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It looks like a customer cash balance is what is created when a customer accidentally overpays when using a bank transfer payment method. So you can't create them directly here https://stripe.com/docs/payments/customer-balance#cash
Can you tell me more about why you are looking to create intents for this specific payment method?
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:
- Create the customer account and add a customer balance
- Create the payment_intent with the customer balance as the payment method
but I got that error that I commented at the beginning.
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?
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.
Dashboard and API instructions for modifying a Customer's credit balance can be found here:
https://stripe.com/docs/billing/customer/balance#modifying
The next Invoice that is finalized for a Customer will use their credit balance, you do not need to explicitly charge against it:
https://stripe.com/docs/billing/customer/balance#modifying:~:text=The credit balance automatically applies toward the next invoice finalized to a customer.
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
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.
ok, I'll do another test with smaller amounts and more balance
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
π 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?
apply a credit balance,
So I have to load the balance with a negative amount?
How are you "loading the balance" currently?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes, it worked for me
thank you so muchπ₯³