#.rjcustodio

1 messages · Page 1 of 1 (latest)

rocky hazelBOT
uneven roost
carmine wraith
#

thanks

#

question regarding webhook, how can i listen for one customer only?

for example, customer 1 made a transaction via checkout page.
while customer 2 is also making a transaction via checkout page at the same time.

how can I specifically listen to customer 1 only?
so i can have the accurate data.

uneven roost
#

hmm, you don't. Webhook events are sent to the URL you specify, and it's on an account-wide basis.

There are ways you can connect a given CheckoutSession to a certain customer or user of yours, I think is what you're asking. For example when you create the CheckoutSession, you can pass metadata with the details of your user and look for that in the webhook body of checkout.session.completed

https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata

carmine wraith
#

okay, will check this, hmm

i have another question

my webhook endpoint is running everyday.

then one of the customer have a monthly subscription.

will the webhook can catch that automatically?
will the webhook can capture that there's a new transaction it's either subscription is renewed and successfully paid using their credit card that he use on the first payment.
and can catch if there's an error for example the card is declined.

uneven roost
rocky hazelBOT
carmine wraith
#

can you recommend something on this scenario..

a recurring payment/subscription has been declined or cancelled because of his/her card has a insufficient balance now.

how can a customer update his/her payment method / card information so they can pay and continue the subscription plan.

is there an option that we can send a link to a customer where they can update their card details? or any options has stripe to resolve this scenario?

silent thistle
#

hey ther,e stepping in to help you here, give me a minute to read

#

Yes, you have a few options here.

  1. You can allow Stripe to manage payment recovery for you:
    https://stripe.com/docs/billing/revenue-recovery/customer-emails
  2. You can manage this yourself, potentially using the customer portal to allow them to set up a new payment method:
    https://stripe.com/docs/customer-management
  3. a fully custom solution you implement to gather new payment details using Elements etc

Learn how you can use customer emails to recover revenue.

Manage customer relationships with your business.