#neha_webhooks

1 messages ยท Page 1 of 1 (latest)

nocturne parcelBOT
#

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

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

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.

exotic beacon
#

hi there!

shut marlin
#

Like in practice
invoice.paid
User gets a credit grant from 1/1 4:55pm to 2/1 4:55pm, let's say
Then the renewal comes around
But because it takes a few min for the invoice to be created, paid, etc., users are left credit-less until 5pm let's say

It's a very small window but users do notice

#

Also because it's not user-facing I'm just wondering if there's something I can do that's more detached from the Stripe lifecycle... but I couldn't think of anything.

exotic beacon
#

there is sometimes a multi-minute gap between the user confirming the charge & the credits finally being allocated.
Can you share a specific Request ID (req_xxx) where you allocated the credits, but it took a few minutes to be allocated?

shut marlin
#

can I give you a customer ID?

exotic beacon
#

yes

shut marlin
#

Okay so there's a 2 min delay

#

Between the customer initiating the payment and the charge going through

#
        items: [{ id: subscription.items.data[0].id, price: finalPriceId }],
        trial_end: "now",
        proration_behavior: "always_invoice",
        payment_behavior: "pending_if_incomplete",
      });
#

And this is the code being called

#

But I was considering moving this to a customer portal flow. Would that help?

#

Right now the user gets a pop-up like, "Ready to start your monthly subscription?"
The click Confirm
I call that code above
[... takes 2 minutes for the whole thing to go through, all the way to invoice.paid ...]
The user jams the "Confirm" button, gets angry, emails us

#

And yeah now that credits AREN'T user facing, wonder if there's a better way to allocate than the invoice.paid event

nocturne parcelBOT
nocturne parcelBOT
rapid niche
#

@shut marlin ๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

Okay so there's a 2 min delay
why would the delay be important to your integration?

#

The user jams the "Confirm" button, gets angry, emails us
how are you dealing with this on the front-end?