#searchableguy-payment-element
1 messages ยท Page 1 of 1 (latest)
Hello! Yes, setting redirect: if_required with stripe.confirmPayment is how you would disable the full-page redirect
This will only disable the redirect for payment method types that do not require it (like card) - there are some payment method types that need the redirect to work, and there's no way to disable that redirect with Payment Element
We talk about this a bit in the docs: https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
Yeah, I'm aware of that ๐ so no way to open in a pop up here for the rest. I'm guessing.
Nope - if you wanted that behavior you'd have to move off of Payment Element
Copying your new question here:
Let's say I want to use a custom interval for charing regular payments without user action. What would be the correct way to do this?
When you say a custom interval, what do you mean? Do you mean something along the lines of a subscription?
Gotcha, so generally the correct way to do this would be with Subscriptions(https://stripe.com/docs/billing/subscriptions/overview). When providing the payment method information we'd gather as much information as possible to minimize the chance that the customer will need to come back to finish payment (but it's always possible with certain payment method types that additional actions may be needed)
Yeah but that is limited in intervals.
If I want a custom interval, I cannot use the pricing API
Well, what specific interval were you hoping for? You can have intervals that are any number of days so I'm not following how that doesn't fit what you need
Less than a day.
Ah - you'd have to implement that yourself then. You'd use Payment Intents combined with scheduling logic on your end to generate the payments at the correct intervals
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-setup_future_usage so I'm gonna use the future usage here in offsession mode?
๐ Taking over this thread from karbi
Would I face any issues rolling it out manually for different frequencies than days or month?
Because I have a feeling bank mandates or other issues may pop up when charging people very frequently in micro payments.
Also is it possible to have 1.5 days or 7.8 days as interval?
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-setup_future_usage so I'm gonna use the future usage here in offsession mode?
- In the first payment where you want the customer payment method to be saved,
setup_future_usage: 'off_session'will be used to save the card payment - In the future off-session payments on saved payment methods,
off_session: trueshould be set
You can refer to the detailed doc here: https://stripe.com/docs/payments/save-during-payment
Would I face any issues rolling it out manually for different frequencies than days or month?
This is possible depending on the bank side. Final authorisation/approval is up to the bank/issuer
Also is it possible to have 1.5 days or 7.8 days as interval?
You can handle it manually on your side