nextjs-subscription-payments icon indicating copy to clipboard operation
nextjs-subscription-payments copied to clipboard

copyBillingDetailsToCustomer - Why return on !name, !phone, or !address?

Open oalexdoda opened this issue 3 years ago • 1 comments

Hey,

I noticed that there's a copyBillingDetailsToCustomer() function that runs on createOrRetrieveCustomer.

Any reason why it returns when there's a missing name, phone or address?

What if a customer doesn't add their phone? Or address? Any reason why their billing details shouldn't be updated?

Thanks!

oalexdoda avatar Nov 30 '22 14:11 oalexdoda

Not really, probably can be removed. Do you want to open a PR?

thorwebdev avatar Jan 16 '23 03:01 thorwebdev