GitHub - SMLabs/pyrocms-store: Welcome this is a Store or Webshop for pyrocms. its currrently in development we hope to have a working version near the beginning or end of december. if you have any questions don't hesitate to ask them. greetings the pyrocms-store team

// load the merchant library
$this->load->library('merchant');

// load a payment driver
$this->merchant->load('paypal');

// initialize payment driver settings (if not already done in config)
$this->merchant->initialize(array(
	'paypal_email' => 'text@example.com'
));

// process payment
$this->merchant->purchase(array(
	'amount' => 99.00,
	'currency' => 'USD',
	'reference' => 'Order #50'
));

// process return from payment gateway (hosted payment gateways only)
$this->merchant->purchase_return();

You are free to use this code under the terms of the MIT License. See LICENSE.txt for further details.