<commit_before><?php

namespace Omnipay\Bardo\Message;

use Omnipay\Common\Message\AbstractRequest;

/**
 * Pin Purchase Request
 */
class PurchaseRequest extends AbstractRequest
{
	protected $liveEndpoint = 'https://bardo.com/pay/payment.php';
	protected $testEndpoint = 'https://bardo.com/pay/payment.php';

	public function getShopId()
	{
		return $this->getParameter('shopId');
	}

	public function setShopId($value)
	{
		return $this->setParameter('shopId', $value);
	}

	public function getData()
	{
		$this->validate('amount', 'card');

		$data = array();
		$data['TRANSAC_AMOUNT'] = $this->getAmountInteger();
		$data['CURRENCY_CODE'] = strtoupper ($this->getCurrency());
		$data['PRODUCT_NAME'] = $this->getDescription();
		$data['CUSTOMER_IP'] = $this->getClientIp();
		$data['LANGUAGE_CODE'] = 'ENG';
		$data['SHOP_NUMBER'] = $this->getTransactionId();
		$data['URL_RETURN'] = $this->getReturnUrl();
		$data['URL_CANCEL'] = $this->getCancelUrl();
		$data['redirect_msg'] = 'Redirecting Now';
		$data['SHOP_ID'] = $this->getShopId();
		
		
		if ($this->getToken()) {
			$data['card_token'] = $this->getToken();
		}<commit_msg>display url and email fix<commit_after><?php

namespace Omnipay\Bardo\Message;

use Omnipay\Common\Message\AbstractRequest;

/**
 * Pin Purchase Request
 */
class PurchaseRequest extends AbstractRequest
{
	protected $liveEndpoint = 'https://bardo.com/pay/payment.php';
	protected $testEndpoint = 'https://bardo.com/pay/payment.php';

	public function getShopId()
	{
		return $this->getParameter('shopId');
	}

	public function setShopId($value)
	{
		return $this->setParameter('shopId', $value);
	}

	public function getData()
	{
		$this->validate('amount', 'card');

		$data = array();
		$data['TRANSAC_AMOUNT'] = $this->getAmountInteger();
		$data['CURRENCY_CODE'] = strtoupper ($this->getCurrency());
		$data['PRODUCT_NAME'] = $this->getDescription();
		$data['CUSTOMER_IP'] = $this->getClientIp();
		$data['LANGUAGE_CODE'] = 'ENG';
		$data['SHOP_NUMBER'] = $this->getTransactionId();
		if (!is_null($this->getReturnUrl()))
		{
			$data['URL_RETURN'] = $this->getReturnUrl();
		}
		$data['URL_DISPLAY'] = $this->getDisplayUrl();
		$data['URL_CANCEL'] = $this->getCancelUrl();
		$data['redirect_msg'] = 'Redirecting Now';
		$data['SHOP_ID'] = $this->getShopId();
		
		
		if ($this->getToken()) {
			$data['card_token'] = $this->getToken();
		}
{'fraction_non_alphanumeric': 0.1999160016799664, 'fraction_numerical': 0.0, 'mean_word_length': 5.284960422163588, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '340365', 'n_tokens_mistral': 900, 'n_tokens_neox': 837, 'n_words': 132}