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

undefined method getPaymentIntentReference() #201

Open
graytape opened this issue May 1, 2021 · 2 comments
Open

undefined method getPaymentIntentReference() #201

graytape opened this issue May 1, 2021 · 2 comments

Comments

@graytape
Copy link

graytape commented May 1, 2021

Hi,
I'm trying to make my Stripe-Omnipay SCA compliant but I keep getting an error:

$response = $gateway->authorize([
    'amount'    => $total,
    'currency'  => 'EUR',
    'token'     => $token,
    'returnUrl' => $successUrl,
    'confirm'   => true,
])->setItems($items);

// add stripe data
$data = $response->getData();
$data['expand'] = array("balance_transaction");
$response = $response->sendData($data);

error: Your card was declined. This transaction requires authentication.

If I try the manual setting:

// set confirm manually
$paymentIntentReference = $response->getPaymentIntentReference();
$paymentIntentReference = 'unique_id'.rand(0, 99);
$response = $response->confirm([
    'paymentIntentReference' => $paymentIntentReference,
    'returnUrl' => $site['root'].PAY_SUCCESS_SLUG,
]);

I get the following error message:

Error: Call to undefined method Omnipay\Stripe\Message\AuthorizeRequest::getPaymentIntentReference()

Any suggestion?

(Version 3.1.0)

@nfunwigabga
Copy link

Same issue here.

@iamjohnseun
Copy link

+1

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

3 participants