#Fugazcz
1 messages ยท Page 1 of 1 (latest)
Hi there
hey!
Can you clarify the question a bit?
Sure, give me a sec
Are you asking how to retrieve the credit balance for a Customer?
We got learning platform, and want start something like affiliate for the customers. We got only monthly/yearly subscriptions (no products).
When customer have some credit, it is automatically used for the subscription, right?
Can customer see, how many credits he has and if yes, where?
Gotcha
Their Credit Balance is shown in the balance property on the Customer: https://stripe.com/docs/api/customers/object#customer_object-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.
So you would retrieve the Customer using https://stripe.com/docs/api/customers/retrieve to access that balance and then it would be up to you to build out the UI to show this amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I got u, so only way, how he can display the balance is this? He cannot see it at //https://billing.stripe.com/p/session/myappcredentials
Ah you are using Customer Portal
No don't think it is possible for it to be displayed there
Let me double check
ok ๐
I'm using that portal for payments (client get redirected on that from my app, pay there and then redirect back to app)
Yeah I see we have an outstanding feature request to add Customer Credit Balance to the Customer Portal but we don't currently support it. I'll add on your feedback here and hopefully we will get this built soon.
Unfortunately just not available right now.
Thanks a lot! ๐