Make Pay::Customer
belongs_to :owner
optional
#1159
marckohlbrugge
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I had a reason previously, but I don't remember. Probably can change the owner to optional in a future release. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Currently, every
Pay::Customer
needs anowner
. Is there a specific reason for this?I would like to make it optional for the following the reason:
On my website someone can sign up through a Stripe Payment Link. Completely skipping the Rails app. I would like to listen for the
checkout.session.completed
webhook and create thePay::Customer
andPay::Subscription
records. At this point I do not yet have an Owner to link them to.I will then send them an email to sign up on the website, where I'll eventually associate their
Pay::Customer
with theirUser
record.Beta Was this translation helpful? Give feedback.
All reactions