processor_id is blank and subscription not syncing with database #933
Replies: 1 comment
-
Realised my setup_billing function was missing a line:
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
Business
model which has_many users so rather than add thepay_customer
toUser
I've done it on theBusiness
model.I've also added an
email
field to myBusiness
model as this was mentioned as a requirement in the documentation.In my
Business.rb
file I have this code:When the
Business
is created I can see it adds an entry into thepay_customers
table but theprocessor_id
field is empty.I then have a custom Stimulus controller to use the
Paddle.Checkout.open
function to get the overlay checkout:The customer email is coming from
@business.email
.I can complete the checkout using the Paddle Sandbox, and I can see the subscription in Paddle, but nothing seems to sync with my local database. I can't see any errors with the webhooks as Paddle says they have all succeeded.
Is there something I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions