#itzskyline_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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
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
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.
Yes, it's going to checkout and all seems to work but is not requiring me to pay 1โฌ of trial invoice
Instead this invoice goes to draft
This what happens on the new website
Can you send me the ID of that invoice (in_1234)?
And this is how it looks on old website (same code)
in_1PVEeGGHp99ilxw2PgpUtDTU
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?
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
Ah I found the checkout session in your logs https://dashboard.stripe.com/logs/req_afvyuxSvR4gFKD
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Looking in to that and will get back to you
Yes, i don't get why it's not asking me to pay 1 Eur like here, but sets the 1โฌ invoice in drafts for later instead..
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
Yes i understood but i am sending an invoice for 1โฌ to be paid before enabling free trial
If you can see there is working perfectly and it's the exact same code
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
Thank you for those IDs, I will check in to them in a minute
On the new one invoice remains there instead of asking me for a payment
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
@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