#talmor_code

1 messages ยท Page 1 of 1 (latest)

teal stratusBOT
empty basaltBOT
#

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.

teal stratusBOT
#

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

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

dense grail
#

So just to better explain, I have a subcription for users to sign up for, this is a metered item because its based on how many active users are in the system. I want to charge the customers initially as some users come off a trial period and have active users when they first sign up. So far I have added a flatrate product that calculates based on the number of active users, it just feels like there would be a better way or maybe a way to make the metered product do this when someone signs up.

haughty harbor
dense grail
#

No errors per say, I am able to create the subscription with a second product (the flatrate) and charge the users for it in the same transaction. I was just wondering if there was a way to charge the users initially using a metered product or if the charge is only ever after the first cycle?

haughty harbor
#

Metered products will only be charged at the end of the cycle. The usage will be submitted during the cycle, and Stripe will only be able to calculate the total amount after the cycle ends

dense grail
#

Ah okay, so it would be best to just add the two products together if I need to charge the first month in advance.

haughty harbor
#

Yes, that's right

dense grail
#

Alright, thank you ๐Ÿ™‚

#

happy to close the ticket

haughty harbor
#

No problem! Happy to help ๐Ÿ˜„

jaunty heart
#

Any of you guy have problem with webhook processing with stripe cli simulator's signing secret code?
event = stripe.webhooks.constructEvent(
JSON.stringify(req.body),
sig,
webhook_secret
);
it is always failing to me with the signing secret

teal stratusBOT
#

@jaunty heart looks like you're in the wrong place, this thread is for someone else's question.

Posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but if you violate the rules multiple times you will be removed from this server.