curiouslearning / followthelearners

MIT License
2 stars 1 forks source link

Monthly donations #216

Open burrage opened 4 years ago

burrage commented 4 years ago

Stripe when setting up a monthly donation does NOT pass along the meta data each time a charge happens.

We will have to think about how to best handle monthly donations as a result.

"Hey Ben,

Thank you so much for taking my call moments ago it was an absolute delight to speak with you!

I wanted to follow up our call with an email so you can refer to it down the line.

As the creation of the subscription will automatically create the charge you would not be able to set the metadata on that charge to obtain in the notification email as it will be automatically created by the subscription.

However, if you pass in the metadata in the subscription creation call you will be able to receive it should you listen for the webhook event customer.subscription.created​.

https://stripe.com/docs/api/events/types#event_types-customer.subscription.created

Feel free to try this approach out, and I will be here should you need anything at all!

All the best!

Regards,

Diana"

eric-gt commented 3 years ago

Leaving some notes here for when we pull this out of the backlog