#r3d_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1443278326893514904
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Here is the error I get (test mode)
The PaymentMethod provided () is not allowed for this endpoint. Customer balance can only be applied to PaymentIntents that have `customer_balance` PaymentMethods attached.
{"functionName":"createOrder","error":{"message":"The PaymentMethod provided () is not allowed for this endpoint. Customer balance can only be applied to PaymentIntents that have `customer_balance` PaymentMethods attached.","code":141},"params":{"proId":"MtBJaTVoza","careIds":{"0":"DE0nAEbVI3"},"careOptionIds":{},"paymentMethod":"card","plannedAt":{"__type":"Date","iso":"2025-11-27T11:00:00.000Z"},"successUrl":"http://localhost:3000/pro/eliottpro2?payment_status=success","cancelUrl":"http://localhost:3000/pro/eliottpro2?payment_status=failed","referrer":"web","isWebView":false},"user":"5LEGEVs5f9"}
Customer balance refers to funds added to the customer via the bank transfer payment method
ie this flow: https://docs.stripe.com/payments/bank-transfers
The error is saying you can't apply bank transfer funds to that payment intent because it's not an allowed payment method for that intent
Are these subscription checkout sessions or one time payments?
I think using discounts makes more sense here
One time payments, is there a way to implement giftcards otherwise?
What about discounts doesn't work for you?
The way out platform works is that the main stripe account is the one that bills the customer and once the merchant performs the task they get a stripe connect transfer from our company's stripe connect acocunt
But would a discount keep the balance of the giftcard over multiple purchases?
Like say the user loads a 100 EUR giftcard, they pay for a 30 EUR service then the next day they pay for 80 EUR service
Would it be able to count that the user essentially pays nothing on the first purchase and 10EUR on the second so the giftcard funds get used
Or would I need to set up my backend to apply a custom discount on transaction 1 of 30EUR, then substract that from the balance of a Giftcard object in my DB then do the same thing with the remaining balance on the second
And would it affect the stripe statistics of the platform to apply a discount?
hi! i'm takin over this thread now, catching up on context
Alright
hmmm yeah i agree with what codename duchess suggested that using the customer balance in this way isn't really intended, so even if we could find a way to make it work i wouldn't really want to recommend it
something like what you suggested last makes sense, but i can think and see if i can come up with a different idea
can you explain whatn you mean by this?
And would it affect the stripe statistics of the platform to apply a discount?
i'm not sure what exact statistics you're worried about
Well the average checkout basket and stuff like that
If people use giftcards to pay and we use discounts would these deduce said amount from it?
I'm on the dev part so I'm not entirely sure what stats the market team uses
it would reduce the amount, yes