P
Analyzed about 6 hours ago
Library of payment gateways
'John',
'last_name' => 'Doe',
'number' => '4111111111111111',
'month' => 12,
'year' => 2018,
'verification_value' => 123,
'type' => 'visa'
));
if ($card->isValid()) {
$gateway = new
... [More]
PHPMerchant_Billing_Gateway_PayPal(array(
'login' => 'testlogin',
'password' => 'testpassword',
'signature' => 'testsignature',
'test' => true
));
$response = $gateway->purchase(1000, $card);
if ($response->success) {
echo "Purchase complete!";
} else {
echo "Error: " . $response->message;
}
} else {
echo "Error: credit card is not valid. " . join('. ', $card->errors());
} [Less]