stripe_utils: Add set_subscription_metadata method
This commit is contained in:
parent
bd875ffe7d
commit
1a7412f8ff
1 changed files with 6 additions and 0 deletions
|
@ -233,6 +233,12 @@ class StripeUtils(object):
|
||||||
)
|
)
|
||||||
return subscription_result
|
return subscription_result
|
||||||
|
|
||||||
|
@handleStripeError
|
||||||
|
def set_subscription_metadata(self, subscription_id, metadata):
|
||||||
|
subscription = stripe.Subscription.retrieve(subscription_id)
|
||||||
|
subscription.metadata = metadata
|
||||||
|
subscription.save()
|
||||||
|
|
||||||
@handleStripeError
|
@handleStripeError
|
||||||
def unsubscribe_customer(self, subscription_id):
|
def unsubscribe_customer(self, subscription_id):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue