Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The amount parameter is required #3

@ArtMin96

Description

@ArtMin96

I followed the readme and I have the following problem.

Omnipay\Common\Exception\InvalidRequestException
The amount parameter is required

$gateway = Omnipay::create('Idram');
$gateway->setAccountId('XXXX');
$gateway->setSecretKey('XXXX');
$gateway->setLanguage('en');
$gateway->setEmail('some email');

$purchaseData = $gateway->purchase();
$purchaseData->setAmount('100');
$purchaseData->setTransactionId('123456');
$purchase = $gateway->purchase()->send();
$purchase->redirect();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions