#karuppasamy
1 messages · Page 1 of 1 (latest)
Hi 👋 that is expected behavior. Stripe does not automatically de-duplicate Customer objects based on provided details. If you want to have de-deuplication logic, then you will need to build that.
oh then how can i find which customer subscribe particular plan
I'm not sure what you're trying to ask, I'm going to need more context than that.
currently i am using pricing table when i click the subscribe it will redirect to checkout page
here can i set email id?
by default
That is where the customer provides their email address. If you want to pass an email address when using the Pricing Table, then you will need to do that by passing an attribute to the Pricing Table's HTML entity. That is shown here:
https://stripe.com/docs/payments/checkout/pricing-table#customer-email
<div style="border: 1px solid#d9d9d9; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);">
<stripe-pricing-table style="background-color: hsla(0,0%,10%,.05);
border: 1px solid hsla(0,0%,10%,.1);" pricing-table-id="prctbl_1NJUItLabf7E4J4FWiQiYMm3"
publishable-key="pk_test_51N51ZTLabf7E4J4FaJPGXMbdTQAXLLZ3uKvFZCvZnNxmOXns3uBv9uVeKnAqjlM1s5r7Xk3fhwPQt2IUIlF10aYB00qlF5piIL">
</stripe-pricing-table>
</div>
i am using angular page
this is my code
I'm not familiar with Angular, but you'll need to adjust your code so that it can take in an existing email address, and pass it as an attribute to the stripe-pricing-table.
ok
i cancel my subscription but in web hook Events.CustomerSubscriptionUpdated event will fire
How did you cancel the Subscription, and what is the question you're trying to ask?
i cancelled here but in web hook Events.CustomerSubscriptionDeleted should call right?
but i dont know why Events.CustomerSubscriptionUpdated this event is call
Depends on the configuration for your Customer Portal. If it's configured to cancel the Subscriptions at the end of their billing period, then customer.subscription.updated is the Event that is expected to be generated.
https://dashboard.stripe.com/test/settings/billing/portal
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
already configure like this