Relative Content

Tag Archive for stripe-payments

Subscription handling in Stripe

As far as I understand, the webhook customer.subscription.updated fires off monthly by default. After one month, it isn’t clear if the payment has gone through or not, subscription.status being set to trialing. It can take a few days for invoice.paid to fire off.

Stripe Payment Fields Not Appearing / Hangs Consistently Trying to Load

We are experiencing a new issue with Stripes integration on a WordPress site that uses Payment Plugins for the integration. Over the past week, the Stripe js will routinely fail to load and just hang without ever presenting the credit card fields to enter. We’ve tried everything from exploring the console errors, disabling all caching and CLoudflare, etc. No matter what we try, we can briefly get them to come back, then within minutes they will stop appearing again. This is making it so no one can check out on our site and we’re losing orders by the second.

Stripe checkout: handling subscription payment failure

Say an user’s monthly subscription is renewed, at which point the 'customer.subscription_updated' event fires off. As it is, I extend the user’s subscription by one month. Though, if the event 'invoice.payment_failed' comes after a few days, I update a boolean in the database named 'subscriptionNotPaid' to true. After that, how should I activate it again? What event should dictate that it is now safe to enable the subscription again?

Multiple Payment Intents for one available item | stripe

I am experiencing what could be called a classical system design problem: In my e-commerce flow I have only one item and multiple users that want to buy this item. This means that multiple PaymentIntents are created, however only the first fastest user to pay will get the item. However, all other users eventually still make a payment for it and at that moment in time there is no item left to buy.

Stripe session only available to connected account, but not platform account

In our Stripe platform application using Stripe Connect, we have a Stripe account for the platform and we have a test account we are using as a connected account. In our server code using the platform API secret key we initiate a session and set StripeAccount in the RequestOptions to be the connected account. The test payment goes through and then redirects the user to the SuccessUrl which contains the sessionId as a query param. The successURL is on the platform web site and has a backend that has access to the platform API key (not the connected account API key). When we try to retrieve the session using the platform’s API key to mark off the successful payment in our database, Stripe says “No such checkout.session”. If we try to list all sessions with the platform API key, we get zero returned. However, in our testing, we have found that if we use the API key from the connected account to retrieve the session or list all of the checkout sessions, we can retrieve the checkout session and list all of the checkout sessions. How can the platform use the platform’s API key along with the session ID in the success URL to handle the completion of the checkout session? Is there some value we should be sending across as a part of the SuccessUrl template so that the platform can handle it’s part of the session completion?