You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Omnipay\Inforbank;
|
|
|
|
use Omnipay\Common\AbstractGateway;
|
|
|
|
class Gateway extends AbstractGateway
|
|
{
|
|
public function getName()
|
|
{
|
|
return 'Inforbank';
|
|
}
|
|
|
|
public function getClientId()
|
|
{
|
|
return $this->getParameter('clientId');
|
|
}
|
|
|
|
public function setClientId($value)
|
|
{
|
|
return $this->setParameter('clientId', $value);
|
|
}
|
|
|
|
public function getClientSecret()
|
|
{
|
|
return $this->getParameter('clientSecret');
|
|
}
|
|
|
|
public function setClientSecret($value)
|
|
{
|
|
return $this->setParameter('clientSecret', $value);
|
|
}
|
|
|
|
/**
|
|
* Start a purchase request.
|
|
* @param array $parameters An array of options
|
|
* @return \Omnipay\Inforbank\Message\PurchaseRequest
|
|
*/
|
|
public function purchase(array $parameters = array())
|
|
{
|
|
return $this->createRequest('\Omnipay\Inforbank\Message\PurchaseRequest', $parameters);
|
|
}
|
|
/**
|
|
* Complete a purchase.
|
|
* @param array $parameters An array of options
|
|
* @return \Omnipay\Inforbank\Message\CompletePurchaseRequest
|
|
*/
|
|
public function completePurchase(array $parameters = array())
|
|
{
|
|
return $this->createRequest('\Omnipay\Inforbank\Message\CompletePurchaseRequest', $parameters);
|
|
}
|
|
}
|