#itzskyline_webhooks

1 messages ยท Page 1 of 1 (latest)

misty gazelleBOT
#

๐Ÿ‘‹ 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/1255529069920125002

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

gaunt tapir
sick solar
#

Hello, that 400 and error is what Stripe is receiving from your server

#

Have you stepped through that endpoint code to see where exactly the error is thrown? I am not immediatley seeing anything when looking at the code but there are a lot of places it could be coming from

gaunt tapir
#

Hello

#

Yes but the same code works on another website

#

I get a strange behiavour

#

Even if i put the trial invoice for 1 eur at checkout i see free trial

#

and the 1โ‚ฌ invoice remains scheduled on the account

sick solar
#

Have you double checked that you updated the webhook endpoint secret to be the one for this new site?

#

That is one thing that I can think of that would probably have to be different between the two. Otherwise I do think sending yourself an event and stepping through your code would be the best way to get an idea of what is erroring out.

gaunt tapir
gaunt tapir
#

Instead this invoice goes to draft

#

This what happens on the new website

sick solar
#

Can you send me the ID of that invoice (in_1234)?

gaunt tapir
#

And this is how it looks on old website (same code)

gaunt tapir
sick solar
#

Ah, you created that subscription with a trial. We don't charge anything for trialing subscriptions. Can you show me your code for the API call that creates this subscription?

gaunt tapir
#

Yes

sick solar
#

I am sorry that is a lot of code and I am working with too many other threads to sift through it. Can you please send me the snippet of code where you are making the API call that creates the subscription? I am trying to see the parameters that you are passing to us so that I can advise on what needs to change

#

Looking in to that and will get back to you

gaunt tapir
sick solar
#

It looks like the next invoice will be for 7 EUR

#

I do see that you are creating a 1 EUR invoice item at some point in your code. You may be seeing something related to that. For the subscriptions themselves, checkout cannot charge any money up front if there is a free trial and after that we will start charging the normal price for your subscription

gaunt tapir
gaunt tapir
#

I don't get why on the new website i can't see "Trial fee for Order #xxx invoice on the payment

#

Should i provide you the old website events so you can check it?

#

This is one invoice from the old website, perfectly working: in_1PV90KKNpTcKcZna0GGhFohq

#

evt_1PV90RKNpTcKcZnavl3Za6YY

sick solar
#

Thank you for those IDs, I will check in to them in a minute

gaunt tapir
#

On the new one invoice remains there instead of asking me for a payment

sick solar
#

I am still looking in to this. I do see that the one checkout session did charge a one time fee for the trial but I am not seeing how that was defined. I will consult my colleagues on this and get back to you

sick solar
#

@gaunt tapir it looks like one of your accounts has an internal setting on it and the other does not. If you write in to our support team, they should be able to fix this on the account that is behaving differently. You can tell them that Checkout is including pending invoice items on one of your accounts but you want that to happen on both
https://support.stripe.com/?contact=true