Registry / other / omnipay-2checkout

omnipay-2checkout

JSON →
library3.0.0phppackagistunverified

2Checkout driver for the Omnipay payment processing library.

composer require omnipay/2checkout
INSTALL
IMPORT
SIG · OMNIPAY-2CHECKOUT
O
omnipay-2checkout
otherphpv3.0.0
harness data pending
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.

Upgrade
Version history
3.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
omnipay-2checkout — pip install omnipay-2checkout · libregistry