I'm using the Stripe's Python library to process subscriptions.
Here's a snippet of my backend Django code.
susbcriptionID = stripe.Subscription.retrieve("subID")
stripe.Subscription.modify(
susbcriptionID,
items=[{
"id": subscription["items"]["data"][0].id,
"plan": "planID",
}]
)
The Stripe docs states that Stripe emails customers upon successful charges.
But I tested this out in live mode by having two subscription choices, one for 50 cents a day and the other for 51. When I signed up for the first choice, I inputted my email, and Stripe emailed me a receipt. But when I later switched to the more expensive plan, I got no email.
When I check my Stripe dashboard, I go to Billing > Subscriptions. I click myself under the "Customer" column. When I scroll to "Events," it shows this (I made this pipe-delimited format for easier reading):
[email protected] upgraded to Daily test 2 from Daily test | 2018/04/16 20:02:25
A proration adjustment for $0.51 USD was created for [email protected] | 2018/04/16 20:02:25
A proration adjustment for ($0.50 USD) was created for [email protected] | 2018/04/16 20:02:25
[email protected] subscribed to the Daily test plan | 2018/04/16 19:59:53
[email protected]'s invoice for $0.50 USD was paid | 2018/04/16 19:59:53
[email protected] has a new invoice for $0.50 USD | 2018/04/16 19:59:53
How do I set up Stripe to email a customer when they change their subscription?