MarkusBernhardt / php-ixopay

The IxoPay Gateway client library for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Ixopay Client

  1. Instantiate the "Ixopay\Client\Client" with your credentials.
$client = new Client("username", "password", "apiKey", "sharedSecret");

$customer = new Customer();
$customer->setBillingCountry("AT")
	->setEmail("customer@email.test");

$debit->setTransactionId("uniqueTransactionReference")
	->setSuccessUrl($redirectUrl)
	->setCancelUrl($redirectUrl)
	->setCallbackUrl($callbackUrl)
	->setAmount(10.00)
	->setCurrency('EUR')
	->setCustomer($customer);

$result = $client->debit($debit);

if ($result->isSuccess()) {
	//act depending on $result->getReturnType()
}

About

The IxoPay Gateway client library for PHP

License:MIT License


Languages

Language:PHP 100.0%