andrewculver / koudoku

Robust subscription support for Rails with Stripe.
MIT License
1.16k stars 187 forks source link

Persist stripe subscription ID on Subscription #192

Open trestrantham opened 6 years ago

trestrantham commented 6 years ago

Also clones stripe customer ID to subscription owner (Team), too. This keeps backwards compatibility by naming the attribute Subscription#stripe_subscription_id rather than repurposing Subscription#stripe_id (which is really the stripe customer ID).

I didn't see any tests for this concern so please advise if there's a preferred test approach.