for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* w-vision
*
* LICENSE
* This source file is subject to the MIT License
* For the full copyright and license information, please view the LICENSE.md
* file that are distributed with this source code.
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
* @license MIT License
*/
namespace Omnipay\Datatrans\Message;
* Class TokenizeRequest
* @package Omnipay\Datatrans\Message
class TokenizeRequest extends AbstractRedirectRequest
{
* @var string
protected $apiEndpoint = 'upStart.jsp';
* @return array
public function getData()
$this->validate('merchantId', 'transactionId', 'sign', 'returnUrl', 'errorUrl', 'cancelUrl');
$data = array(
'merchantId' => $this->getMerchantId(),
'refno' => $this->getTransactionId(),
'amount' => 0,
'currency' => $this->getCurrency(),
'sign' => $this->getSign(),
'useAlias' => 'yes'
);
$data['successUrl'] = $this->getReturnUrl();
$data['cancelUrl'] = $this->getCancelUrl();
$data['errorUrl'] = $this->getErrorUrl();
return $data;
}
* @param mixed $data
* @return TokenizeRequest
public function sendData($data)
return $this->response = new TokenizeResponse($this, $data);