#machineau

1 messages · Page 1 of 1 (latest)

mighty flameBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

errant burrow
#

How can I help?

jaunty bridge
#

hi mate

#

we are using stripe for our ev charging app for payment processing, we use stripe connect product

#

currently users in the app can add a linked payment method (a credit card) and when they finish the session, they get paid from this linked card

#

We also notice that stripe has a stripe customer balance. if i add a manual customer balance to one of the customers, do i still need to amend the payment intent to first check the balance and use the balance, instead of the card?

#

or is there a default stripe backend preference to use balance, before charging the card?

errant burrow
#

Are you talking about credit balance or cash balance?

jaunty bridge
#

i beleive it is called the credit balance

#

somethign we can add using the stripe ui

errant burrow
#

Ok, you can use credit balance to pay invoices, but you can't use credit balance for payment intents

jaunty bridge
#

alternatively you can assume my question is - if there is a way to add a balance / credit to a customer account and irrespective of what the payment intent raised says, if there is a default behaviour to deduct from this , instead of their linked credit card

errant burrow
#

No

jaunty bridge
#

whats the difference between credit balance and cash balance? can i add cash balance to a customer account ?

#

so what is your suggestion on how to achieve what i am after?

Can i add a customer credit balance manually if needed via ui

then amend my payment intent creation process to check if there is a positive credit balance and create the intent with the balance instead of card?

Get the customer's balance

customer = stripe.Customer.retrieve("CUSTOMER_ID")
balance = customer.balance

Create a payment intent

payment_intent = stripe.PaymentIntent.create(
amount=100,
currency="USD",
customer=customer.id,
off_session=True,
payment_method_types=["balance"],
)

Capture the payment intent

payment_intent.capture()

errant burrow
jaunty bridge
#

ok

#

in that case that does not apply to my situation

#

please let me know about my question on how to approach, and if what i mentioned is along the right approach?

errant burrow
#

No, as I said before, you can pay an invoice with credit balance, but not paymentIntent. so I don't see this is something stripe can support.

jaunty bridge
#

but can i amend my billing process to ask stripe to detect credit balance for a transaction if the balance is above the value, instead of using the card?

#

even if i dont do it as a payment intent

errant burrow
#

Can you elaborate?

jaunty bridge
#

when a customer does a charging session, and the value was $10 for example. Can i create an invoice for $10, and assuming there is a credit balance, can i pay it using the credit balance?

#

what i want to achieve is like a wallet balance for the stripe customer. if they have a balance, i deduct from the balance, if there is no direct way to achieve it, can i create an invoice, as you said we can pay invoice using stripe credit

errant burrow
#

You can try that, but you need to implement your own logic for refunds and other flows