Note: This package is still in heavy development.
composer require arleslie/2checkout
Add the service provider arleslie\TwoCheckout\ServiceProvider
.
Copy the file from the publish directory into your config directory and update it. (Rename this to 2checkout.php)
Then you can use TwoCheckout::account()->getPayments()
to retreive past payments.
use arleslie\TwoCheckout\Base as TwoCheckout;
$TwoCheckout = new TwoCheckout(<user>, <password>, <privateKey>, <sellerId>);
$TwoCheckout->account()->getPayments(); // Retreieve Past Payments