#paulc7053_webhooks

1 messages ยท Page 1 of 1 (latest)

silent pulsarBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1219725711385038919

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

thorny marshBOT
#

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.

fair linden
#

Hi!

lusty wigeon
#

So one hour is when the invoice finalizes. Try adding a few more minutes on top of that

#

or another hour

fair linden
#

So current period + 1 hour?

#

I expect a ++ 1hour

#

sorry

lusty wigeon
#

Current period end + 1 hour (invoice finalization) => this finalizes the invoice and is ready for payment

fair linden
#

Okay, got it

#

I will just put 2 hours

lusty wigeon
#

Yup that should work

fair linden
#

I expect a webhook request whose billing_reason to be subscription_cycle. Am I correct?

lusty wigeon
#

Yep

fair linden
#

Also, how do I simulate the success/failure?

lusty wigeon
#

For invoice.paid event, correct?

fair linden
#

yes

#

Ah

lusty wigeon
fair linden
#

Oh

#

didnt know that

#

Thanks!

lusty wigeon
#

NP! ๐Ÿ™‚ Happy to help

fair linden
#

But if I use declined payments, how will the initial payment go through?

#

Or the request is exactly the same - just a different billing_reason ?

lusty wigeon
#

One option is to update the payment method directly using the API

#

I dont' know if dashboard allows you to update the payment method on the customer

#

or subscription

fair linden
#

I dont think so

#

is it reasonable to assume that a failed subscription is the same as a failed initial payment, just with different billing_reason ?

lusty wigeon
#

The object structure won't be any different so I want to say yes, but also would recommend just testing it out to be 100% sure

fair linden
#

Can you please let me know how to test such a case?

lusty wigeon
#

actually the dashboard should let you change the payment method by updating the subscription

fair linden
#

alright, 1 sec please

#

i'll look it up

#

Seems to decline it right away

lusty wigeon
#

Try the payment method I shared above

fair linden
#

Indeed, 4000000000000341 seems to work

#

for the successful renew I can just use the 4242 one, right?

lusty wigeon
#

yup

fair linden
#

Alright, just done that

#

Thanks a lot!

#

I'll be waiting for the requests

#

Thanks for your time!

lusty wigeon
#

Happy to help ๐Ÿ™‚