Libraries
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();