PHP Libraries

Accepting credit card payments with PHP

The following example uses Omnipay by The League of Extraordinary Packages:

$gateway = GatewayFactory::create('Pin');
$gateway->setSecretKey('your-secret-api-key');
$gateway->purchase([
  'email'       => 'customer@email.com',
  'description' => 'Widgets',
  'amount'      => '4999',
  'currency'    => 'USD',
  'token'       => 'card_nytGw7koRg23EEp9NTmz9w',
  'ip_address'  => '1.2.3.4'
])->send();

PHP libraries compatible with Pin Payments:

Pin Payments acknowledges the Traditional Owners and Custodians of the Country throughout Australia and recognises their continuing connection to land, water and community.
We pay our respects to Aboriginal and Torres Strait Islander cultures, and to Elders past and present.