Best approach to utilize dj-stripe model signals #1797
Unanswered
ubiqum-dev
asked this question in
Q&A
Replies: 1 comment
-
@Ayudesee You should read this section for setting up your own You are looking for something like this from djstripe import webhooks
@webhooks.handler("payment_method.attached")
def create_pm_holder(event, **kwargs):
StripePaymentMethodsHolder.objects.create(stripe_pm=instance)
.... Unfortunately it is not possible to hook into the @jleclanche Perhaps we can override the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create my own model on paymentmethod.attached event.
I thought dj-stripe's PaymentMethod model will call Django standard post_save signal but seems it is not the case
What is the best approach to achieve something like this?
Beta Was this translation helpful? Give feedback.
All reactions