What values can we send to Stripe using Omnipay

223 views Asked by At

I have two questions One: What values can we send to Stripe using Omnipay authorize(), example below is only sending amount and description

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

what if we want name and email to be sent, how can we achieve this also

Two: the payment intent we get back from the above request, is generating error log on Godaddy server, I am using the following code;

$paymentIntentReference = $response->getPaymentIntentReference();
$response = $gateway->confirm([
    'paymentIntentReference' => $paymentIntentReference,
    'returnUrl' => $completePaymentUrl,
])->send();

error log: PHP Fatal error: Uncaught Omnipay\Common\Exception\InvalidRequestException: The paymentIntentReference parameter is required

by my confusion is that in spite of this error log the payment process is being complete, so should I worry about this error or not,

and I hope this time I asked my question in the right manner

thanks in advance

0

There are 0 answers