#Devi

1 messages · Page 1 of 1 (latest)

gentle breachBOT
inner plume
#

hello! can you share more on why you're trying to avoid this event?

fleet flame
#

When on successful payment we are inserting customer details to our DB. First time payment only it should be inserted, Next time onwards invoice and payment details of the customer should be inserted.so i need to skip this event

#

to avoid duplicating the customer

inner plume
#

can you share the subscription id and a few event ids for the customer_created webhook event for that subscription?

fleet flame
#

sub_1Lof8IAa7lu4vKn2wTh6BiBV

#

sub_1Lof9gAa7lu4vKn224Muowex

#

actually i am making payment for same customer(customer name and emailid is same) subscription.but it is creating 2 separate customer and subscriptions.

inner plume
#

i think the problem here is that you're creating and passing a new customer id when creating the Checkout Session?

#

I think you would want to ensure that the customer's login is unique to their email id, so you can always use the same Customer id

fleet flame
#

ok, We are allowing to create multiple trial accounts to the same customer(same emailid).so we need to restrict customer to use same email id for trial accounts. am i right?

inner plume
#

i think that would be the best way to go about it