Skip to content
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

Fix error with missing payment method on 3DS payments #159

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

miholeus
Copy link

Hi! I tested 3ds payments and found an error. If you have a failed payment and you try to process it once more, then Stripe will ask you for payment method. And we don't have that parameter in ConfirmPaymentIntentRequest. So I added it. Now you can try to process payment intent once more.

@miholeus miholeus changed the title Fix error with missing payment method Fix error with missing payment method on 3DS payments Oct 17, 2019
@@ -37,6 +37,10 @@ public function getData()
$data['return_url'] = $this->getReturnUrl();
}

if ($this->getPaymentMethod()) {
$data['payment_method'] = $this->getPaymentMethod();
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some explanation why and how to use this new param - either in the description in top of file:

* Stripe Confirm Payment Intent Request.

or above this if.
Would be good if you can add link from official Stripe doc about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants