Creating Customer On paddle_billing.subscription.created #949
-
I'll be selling access to my SaaS through a Paddle checkout embedded in a ClickFunnels page. Once a subscription is created during the sign up process Paddle will fire the webhook to the app so that a User, Team, Customer, etc... can be created. It seems like the Pay gem is expecting that the User and Pay::Customer will be created first and then the Pay::Customer will be passed to Paddle through the passthrough params. That's not how I'd like this to work. How best to customize the webhook flow so that I can search for an existing Team (owned by a User) by the email in the webhook and either attach the subscription if the team and user already exist or create a new user and team and then attach them to the PayCustomer? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
For Paddle Billing it's best to create the customer first, as then any subscriptions/transactions are created for that What's the reasoning behind why you don't like the current way? Do you not have users login first? |
Beta Was this translation helpful? Give feedback.
I've never needed to create custom webhook listeners, but yes it does appear so looking at the docs > https://github.com/pay-rails/pay/blob/main/docs/7_webhooks.md#unsubscribing-from-a-webhook-listener