-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set off_session parameter to true when creating a new subscription #764
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested against all the Stripe test cards.
Second 3DS check upon first payment of subscription doesn't occur (unless the test card enforces it to do so). This holds true for subscriptions with trial periods (when the trial ends the first payment is taken without a 3DS check unless the test card enforces it)
I also note that Stripe correctly sends out emails (if configured to do so) when the 3DS check is off-session. which it wasn't doing before.
Can confirm this fixes #743, hopefully it is merged soon! |
@driesvints seems to make sense to me but you can review. |
You might want to add option |
But when you're performing a charge you're always on session? |
Incorrect, a automatically renewing subscription (for example) will process a charge off session. As will collecting payment details on session and processing the charge when the customer isn't there (like how much of America does card payments offline still). Adding confirm = true is interesting, as it clearly wasn't required to make it all work, but seems like it should be to record the fact the user did authorise us to make the charge. One assumes without it stripe notes we charged off session without confirmation, as to what effect that has... |
@SlyDave we're talking about the |
@driesvints not always. with $paymentIntent = PaymentIntent::retrieve($paymentIntentId) (hold off to Stripe.handleCardPayment(paymentIntent.client_secret, {
payment_method: paymentMethodId,
})
.then(response => {
if (response.error) {
console.log(response.error.message);
} else {
// Success!
// Persist do whatever you want
}
}); I mean the front end isn't a problem but it would be nice Cashier had API for $paymentIntent = PaymentIntent::retrieve($paymentIntentId) Kind of like |
My apologises, must have got confused with this being a pull request for subscriptions and not a new issue raised for a different concern, my bad, carry on. 😁 |
@hassanazimi you can pass this with the |
@driesvints absolutely! |
Set
off_session
parameter totrue
when creating a new subscription to tell Stripe that the recurring payments can be made off session. Without this parameter (which isfalse
by default) all other payments will throwIncompletePayment
exceptions.This fixes issue #743.