thephpleague / omnipay-stripe

Stripe driver for the Omnipay PHP payment processing library
MIT License
185 stars 168 forks source link

Stripe Payment Intents are not working. #224

Open dasundev opened 1 year ago

dasundev commented 1 year ago

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 commented 1 year ago

I am getting the following error: image

delatbabel commented 1 year ago

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 commented 1 year ago

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