#wendy-

1 messages · Page 1 of 1 (latest)

normal nebula
#

Hi there 👋 I'm not sure I'm following the question.

#

Would you mind trying to clarify or elaborate?

narrow geyser
#

yes, i can

narrow geyser
#

so after cancel subscription call with prorated and invoice now then finalize the invoice, if i sent receipt out, it looks good.

#

but if we refund to customer and do a balance transaction calls, the receipt doesn't look too intuitive to customer and we don't want this email

brazen mountain
#

What purpose does the balance transaction call serve in this flow?

narrow geyser
#

to make the customer balance from -ve to $0

brazen mountain
narrow geyser
#

we call the finalize invoice endpoint

#

does this send endpoint actually email to customer in test mode?

brazen mountain
#

No we don't send emails in Test mode

narrow geyser
#

it doesn't help us then

#

we need to issue a refund call after this debit invoice sent

brazen mountain
#

To refund the customer balance?

narrow geyser
#

yes

#

to their original payment, the credit card

brazen mountain
#

Okay so unfortunately I do not think we can configure the email receipt to not include the balance transaction details. I assume that is what you say the customer finds confusing.

narrow geyser
#

correct

#

there is no indication that say it went back to his credit card

brazen mountain
#

Unfortunately I don't think the Invoice will be able to capture the Refund object since that occurs outside of the Subscription/Invoice process.

#

for that level of customizations it may make the most sense to build your own invoice email template to send to the user.

narrow geyser
#

so, is there a way to maybe wait for stripe to email customer with the set of invoice/receipt before refund/balanceTx calls?

brazen mountain
#

wait for stripe to email customer
If you mean the automatic invoice email, yes this is possible.

narrow geyser
#

how do we know it's been emailed?

brazen mountain
#

Listening for the invoice.sent event

narrow geyser
#

ok thanks!