#Gabriel MonteirO

1 messages · Page 1 of 1 (latest)

tough cliffBOT
versed folio
#

Hi there

#

USD isn't supported yet for Customer Balance

grim haven
#

Is there a way I can use the customer balance in product payment through the react native sdk?

#

I found this snippet in the docs:

versed folio
#

Hmm that's odd that snippet is there. I was under the impression this isn't supported for USD yet. Let me double check. In the meantime can you provide a request ID where you saw the above error when attempting to create a PaymentIntent?

grim haven
#

How can I provide it to you? You mean a print from the code I wrote to get this error?

#

We are using a test account to create the payment intent

versed folio
grim haven
#

req_MT4jouGXpe8s7Q
req_iYbG5T0sHbBivG
req_D8NPRRiDPUh7vy

versed folio
#

Thanks, give me a moment to check on current state of this.

#

Okay yeah this isn't supported for USD PaymentIntents yet. You can only use Cash Balance with USD Invoices. It also looks like you are mixing up Invoice credit balance with Cash balance as the Customer you are trying to charge doesn't have a Cash Balance.

#

I'll submit some feedback about those docs as I know that is confusing.

#

Let's back up a minute though

#

What are you trying to do exactly?

tough cliffBOT
grim haven
#

I have a react native application that allows the customer to buy a product through the stripe sdk.

We are developing a feature to let the user buy credits to the customer balance and use those credits to buy the product.

The feature should work like a wallet and we were pretending to use customer balance to pay for subscriptions and other types of one time purchase

#

The native sdk requires a PaymentIntent to display a stripe payment dialog, we need the customer balance to show as an option in this dialog.

versed folio
#

Ah okay

#

So yeah I think there is some confusion here with Credit Balance vs. Customer Balance.

#

Customer Balance is a result of Bank Transfers

#

Which are currently only supported on Invoices for USD

#

You can't manually adjust a Customer's Customer Balance to represent a "credit" -- this only happens via Bank Transfer

#

You can adjust their Credit Balance which will be applied against the next Invoice for that Customer

#

So if you are working with Invoices then you could use this to handle your use-case.

#

But if you are working with PaymentIntents and not Invoices, then you need to track your customer's "balance" in your own database and not via the Stripe Customer Balance

grim haven
#

We have both... the customer can buy with the PaymentIntent and with a subscription

versed folio
#

Okay but Credit Balance can only be applied against an Invoice and it will always be picked up by the next Invoice for that customer

#

I assume this isn't really what you are looking for -- your use-case isn't what it was designed for

grim haven
#

Oh okay, thank you so much for the help