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 is owned and operated by
Southern Payment Systems Pty Ltd
ABN: 46 154 451 582
Level 1, 34 Queen St,
Melbourne VIC 3000

Privacy Policy Terms Security Status

Australia