Open burrage opened 4 years ago
Leaving some notes here for when we pull this out of the backlog
amount
and monthlyAmount
. These values are identical on the date of the first donationisActive
field that determines whether the monthly update callback will runmonthlyAmount
as the principalpercentFilled
is calculated using amount
monthlyAmount
to amount
, recalculates percentFilled
off the new value of amount
, removes the endDate
field if it exists, and resets itself to run in another 30 daysisActive
is set to false, the monthly update callback is removedisActive
is set to true, the monthly update callback is run, and adds itself to run in another 30 days
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"