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

Stripe Payment Intents are not working. #224

Open
dasundev opened this issue Feb 9, 2023 · 3 comments
Open

Stripe Payment Intents are not working. #224

dasundev opened this issue Feb 9, 2023 · 3 comments

Comments

@dasundev
Copy link

dasundev commented Feb 9, 2023

This example code is not working.

$paymentMethod = $_POST['paymentMethodId'];

$response = $gateway->authorize([
     'amount'                   => '10.00',
     'currency'                 => 'USD',
     'description'              => 'This is a test purchase transaction.',
     'paymentMethod'            => $paymentMethod,
     'returnUrl'                => $completePaymentUrl,
     'confirm'                  => true,
 ])->send();
@dasundev
Copy link
Author

dasundev commented Feb 9, 2023

I am getting the following error:
image

@delatbabel
Copy link
Contributor

It appears that you're trying to do a redirect payment type. I don't think that's supported by the Stripe gateway code.

@dasundev
Copy link
Author

dasundev commented Feb 9, 2023

@delatbabel I want to use off-site payments. but the paymentMethod is not accepted by the authorize()

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

No branches or pull requests

2 participants