#cajcek_webhooks

1 messages ยท Page 1 of 1 (latest)

tidal torrentBOT
ebon craneBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

tidal torrentBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1255229799694340248

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

river crypt
#

Hello! What's your question?

fringe bay
#

Will this webhook be the best for listening to subscriptions when the payment is rejected after several attempts and the subscription is canceled?

#

there will be no conflict with invoice.payment_failed ?

river crypt
#

It might be best or it might not be, it depends on your specific situation. Are you using Subscription Schedules? What conflict are you worried about, exactly?

fringe bay
#

If the payment fails (I have a subscription cancellation in my API in the subscription database) in such a case. Then, during these few attempts, it may trigger me? (invoice.payment_failed). If so, how can I check how many payment attempts there are left?

river crypt
#

Sorry, I don't understand. You're canceling Subscriptions but leaving outstanding Invoices open to still collect payments, and you want to know when those payments fail? Or something else? What's your goal?

tidal torrentBOT
fringe bay
#
  1. I create subscriptions for a customer with a 7-day trial mode
  2. After 7 days I want to collect the payment and it fails
  3. Is the subscription canceled or does it try to collect the payment several times?

next case

  1. I am creating a subscription for a customer
  2. Successfully pays for half a year of subscription
  3. the 7th time there is an error
  4. When an attempt is made to collect the amount from the customer's card, a webhook is triggered every time the "invoice.payment_failed" error occurs?
  5. If the attempt to collect the amount fails, is the "subscription_schedule.aborted" webhook triggered?
river crypt
#

When an attempt is made to collect the amount from the customer's card, a webhook is triggered every time the "invoice.payment_failed" error occurs?
Yes.

fringe bay
river crypt
fringe bay
river crypt
#

If you don't use Subscription Schedules then no subscription_schedule.* Events will fire.

fringe bay
river crypt
fringe bay
#

ok last question

#

in this webhook:
invoice.payment_failed

How can I check how many payment attempts are left?

river crypt
#

You can't, you can only see how many there have been and if another one will happen or not.

fringe bay
#

Ok, and which field corresponds to "will there be 1 more attempt" or "when"?

river crypt
#

There's no way to know how many are left because sometimes we encounter certain types of failures that indicate retrying wouldn't do any good.

fringe bay
#

ok, I guess I should have enough ๐Ÿ™‚

#

thanks! โค๏ธ