How to make the Stripe payment sheet for iOS in Flutter barrierDismissible: false?

I am using Stripe for iOS in my Flutter app and I want to disable the ability for the user to dismiss the payment sheet by tapping outside of it. Currently, when the user taps outside of the payment sheet, I am receiving an error from Stripe. I know that the barrierDismissible option is not… Read More How to make the Stripe payment sheet for iOS in Flutter barrierDismissible: false?

How to add payment description during stripe checkout

I was wondering how to add the payment description at the stripe checkout session, so that when I export the payment details into an excel file at the stripe dashboard, it will be easier for me to filter the payment data. Code for stripe checkout session <?php session_start(); require ‘vendor/autoload.php’; include("conn_db.php"); $total_amount = $_POST["total-amount"]; $total_amount… Read More How to add payment description during stripe checkout

Is it important to hide Stripe secret key in Javascript?

I would like to know if it’s important to hide my stripe key in my javascript. In fact, in my Symfony website, I put this key in my javascript to allow users to pay their orders. And this is how I made that: </footer> </body> <script src="https://kit.fontawesome.com/47f28c9d14.js&quot; crossorigin="anonymous"></script> <script type="text/javascript"> var stripe = Stripe("pk_live_…."); var… Read More Is it important to hide Stripe secret key in Javascript?

How can I send user data to stripe checkout

I’m currently creating a checkout page for my users. The users click on a button on the frontend whilst logged into their account. The checkout session. let stripe = null onMounted(async () => { stripe = await loadStripe(import.meta.env.VITE_STRIPE_KEY) }) function buyTrialLesson() { stripe.redirectToCheckout({ successUrl: "xxxx", cancelUrl: "xxx", lineItems: [{ price: "price_xxxxxxxxxxxxxx", quantity: 1, }], mode:… Read More How can I send user data to stripe checkout

API router doesn't read Stripe API key stored in .env file

I made an .env file and put my stripe key in there. then in backend API/router, i simply imported that key to work with it. I made a checkout request but i’m still getting this error in console.dev tab: POST http://localhost:5000/api/checkout/payment 500 (Internal Server Error) Also, in network tab, the payment responses with header message… Read More API router doesn't read Stripe API key stored in .env file

Stripe webhook account.updated never triggered, whenever an connected account status changes

I have a Stripe Connect integration with custom account. When I create a Custom account, the account status is "Restricted". Then I fill the onboarding form and it changes to "Complete" (ready for payments and payouts). Even though I have a webhook setup for the account.updated event, it’s never triggered. Following Stripe documentation it should… Read More Stripe webhook account.updated never triggered, whenever an connected account status changes

A pending promise is returned from stripe.checkout.sessions.listLineItems each time

Here I am trying to get the data from the firebase and then use that id to retrieve items from stripe checkout. But each time I try this I get a pending promise. const colRef = collection(db, `users/${session.user.email}/orders`); const q = query(colRef, orderBy("timestamp", "desc")); const orders = await getDocs(q) .then((snapshot) => { snapshot.docs.forEach((sdoc) => {… Read More A pending promise is returned from stripe.checkout.sessions.listLineItems each time

I keep getting "StripeInvalidRequestError: Insufficient funds in Stripe account." even though that I do have enough funds

I’m trying to transfer funds from my Stripe account to a connected Stripe account in test mode. I have enough funds on my test mode account that are not pending. But I’m still getting a "StripeInvalidRequestError: Insufficient funds in Stripe account." error. I’m not sure what I’m doing wrong, this is the first time I’m… Read More I keep getting "StripeInvalidRequestError: Insufficient funds in Stripe account." even though that I do have enough funds

Why does stripe.Account.retrieve("") return an account, and what account is it?

I’m attempting to make a utility function to check if a user has submitted their onboarding details. Ex: @property def is_onboarded(self): stripe = stripe_config() a = stripe.Account.retrieve(self.stripe_user_id) return a.details_submitted If self.stripe_user_id is an empty string, it returns some account for an ID I can’t track down (don’t see it in the online Connect interface). Ex:… Read More Why does stripe.Account.retrieve("") return an account, and what account is it?