#smriti15s-Checkout
1 messages · Page 1 of 1 (latest)
Hi! Can you clarify what you are trying to do?
FYI credit notes are to updated finalized invoices, and customer balance is to issue credit/debit adjustments to a customer.
Yes, suppose using checkout session, our customer paid 100$, later on instead of issuing refund we want to give him credit note/balanace. So that he can use that in next checkout session transaction. So how can we manage this or implement this?
customer balance only applies to invoice, so it won't work with Checkout Sessions.
Okay. Is there any way we can do so?
But I think you could use Coupons for this: https://stripe.com/docs/payments/checkout/discounts
Would it make sense if we fetch the Customer Balance Transaction object on our checkout customer and minus the amount then redirect to checkout page? And simultaneously update the customer balane?
Yes, you could definitely compute a new amount for the Checkout Session yourself. In this case you probably want to pass line_items.price_data instead of a price ID when creating the Checkout Session. https://stripe.com/docs/api/checkout/sessions/create
But would that allow us to compute the customer balance as well us?
As per documentation it seems, we can only update description and metadata on customer balance object.
You can update the customer balance with https://stripe.com/docs/api/customers/update?lang=node#update_customer-balance
Okay. Can you tell me difference betwen credit note and customer balance?
If you created and finalized an invoice, and want to change the amount, you would use a credit note. https://stripe.com/docs/invoicing/dashboard/credit-notes
So that would not be useful in your case.