Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Omnipay
✓ use Omnipay\Omnipay;
Process a payment using the 2Checkout gateway.
use Omnipay\Omnipay;
$gateway = Omnipay::create('2Checkout');
$gateway->setAccountNumber('your-account-number');
$gateway->setSecretWord('your-secret-word');
$response = $gateway->purchase([
'amount' => '10.00',
'currency' => 'USD',
'transactionId' => '12345',
'returnUrl' => 'https://example.com/return',
])->send();
if ($response->isSuccessful()) {
echo "Payment successful!";
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.