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

Pass timeout parameter #59

Open
bhaumikpandhi opened this issue Feb 6, 2020 · 1 comment
Open

Pass timeout parameter #59

bhaumikpandhi opened this issue Feb 6, 2020 · 1 comment

Comments

@bhaumikpandhi
Copy link

Hello,

I want to pass timeout parameter while creating payment so that customers can only pay within 10 minutes of time.

I've tried few ways but none working.

$gateway = Omnipay::create('PaymentExpress_PxPay');
$gateway->setUsername('username');
$gateway->setPassword('password');

$response = $gateway->purchase([
    'amount' => 100,
    'currency' => 'USD',
    'to' => Carbon\Carbon::now()->timezone('UTC')->addMinutes(1)->format('ymdHi'),
    'returnUrl' => 'returnURL.php'
])->send();

$gateway = Omnipay::create('PaymentExpress_PxPay');

$gateway->setUsername('username');
$gateway->setPassword('password');

$response = $gateway->purchase([
    'amount' => 100,
    'currency' => 'USD',
    'TO' => Carbon\Carbon::now()->timezone('UTC')->addMinutes(1)->format('ymdHi'),
    'returnUrl' => 'returnURL.php'
])->send();

$gateway = Omnipay::create('PaymentExpress_PxPay');

$gateway->setUsername('username');
$gateway->setPassword('password');

$response = $gateway->purchase([
    'amount' => 100,
    'currency' => 'USD',
    'Opt' => "To=".Carbon\Carbon::now()->timezone('UTC')->addMinutes(1)->format('ymdHi'),
    'returnUrl' => 'returnURL.php'
])->send();

Payment express is providing such feature. Added comment/document provided by payment express.

payment-express

Please help.

@webwaldo
Copy link

webwaldo commented Jun 4, 2020

I think this is will be sorted by #55 when it gets merged in.

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