<commit_before><?php

namespace Omnipay\Quickpay;

use Omnipay\Common\AbstractGateway;

/**
 * Quickpay Gateway
 */
class Gateway extends AbstractGateway
{
	public function getName()
	{
		return 'Quickpay';
	}

	public function getDefaultParameters()
	{
		parent::getDefaultParameters();
		return array(
			'merchant' => '',
			'agreement' => '',
			'payment_window_agreement' => '',
			'apikey' => '',
			'payment_window_apikey' => '',
			'privatekey' => '',
			'language' => '',
			'payment_methods' => array()
		);
	}

	public function getPaymentMethods(){
		return $this->getParameter('payment_methods');
	}

	public function setPaymentMethods($value = array()){
		return $this->setParameter('payment_methods', $value);
	}

	public function getMerchant()
	{
		return $this->getParameter('merchant');
	}

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

	public function getPaymentWindowAgreement()
	{
		return $this->getParameter('payment_window_agreement');
	}

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

	public function getAgreement()
	{
		return $this->getParameter('agreement');
	}

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

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

	public function getPaymentWindowApikey()
	{
		return $this->getParameter('payment_window_apikey');
	}

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

	public function getApikey()
	{
		return $this->getParameter('apikey');
	}

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

	public function getPrivatekey()
	{
		return $this->getParameter('privatekey');
	}

	public function getLanguage()
	{
		return $this->getParameter('language');
	}

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

	/**
	 * Start an authorize request
	 *
	 * @param array $parameters array of options
	 * @return \Omnipay\Quickpay\Message\AuthorizeRequest
	 */
	public function authorize(array $parameters = array())
	{
		return $this->createRequest('\Omnipay\Quickpay\Message\AuthorizeRequest', $parameters);
	}

	/**
	 * Start a purchase request
	 *
	 * @param array $parameters array of options
	 * @return \Omnipay\Quickpay\Message\PurchaseRequest
	 */
	public function purchase(array $parameters = array())
	{
		return $this->createRequest('\Omnipay\Quickpay\Message\PurchaseRequest', $parameters);
	}

	/**
	 * Complete a purchase
	 *
	 * @param array $parameters
	 * @return \Omnipay\Quickpay\Message\CompletePurchaseRequest
	 */<commit_msg>Add stuff to set GA tracking id as param<commit_after><?php

namespace Omnipay\Quickpay;

use Omnipay\Common\AbstractGateway;

/**
 * Quickpay Gateway
 */
class Gateway extends AbstractGateway
{
	public function getName()
	{
		return 'Quickpay';
	}

	public function getDefaultParameters()
	{
		parent::getDefaultParameters();
		return array(
			'merchant' => '',
			'agreement' => '',
			'payment_window_agreement' => '',
			'apikey' => '',
			'payment_window_apikey' => '',
			'privatekey' => '',
			'language' => '',
			'google_analytics_tracking_id' => '',
			'payment_methods' => array()
		);
	}

	public function getPaymentMethods(){
		return $this->getParameter('payment_methods');
	}

	public function setPaymentMethods($value = array()){
		return $this->setParameter('payment_methods', $value);
	}

	public function getMerchant()
	{
		return $this->getParameter('merchant');
	}

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

	public function getPaymentWindowAgreement()
	{
		return $this->getParameter('payment_window_agreement');
	}

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

	public function getAgreement()
	{
		return $this->getParameter('agreement');
	}

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

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

	public function getPaymentWindowApikey()
	{
		return $this->getParameter('payment_window_apikey');
	}

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

	public function getApikey()
	{
		return $this->getParameter('apikey');
	}

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

	public function getPrivatekey()
	{
		return $this->getParameter('privatekey');
	}

	public function getLanguage()
	{
		return $this->getParameter('language');
	}

	public function setLanguage($value)
	{
		return $this->setParameter('language', $value);
	}
	
		public function getGoogleAnalyticsTrackingID()
	{
		return $this->getParameter('google_analytics_tracking_id');
	}

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

	/**
	 * Start an authorize request
	 *
	 * @param array $parameters array of options
	 * @return \Omnipay\Quickpay\Message\AuthorizeRequest
	 */
	public function authorize(array $parameters = array())
	{
		return $this->createRequest('\Omnipay\Quickpay\Message\AuthorizeRequest', $parameters);
	}

	/**
	 * Start a purchase request
	 *
	 * @param array $parameters array of options
	 * @return \Omnipay\Quickpay\Message\PurchaseRequest
	 */
	public function purchase(array $parameters = array())
	{
		return $this->createRequest('\Omnipay\Quickpay\Message\PurchaseRequest', $parameters);
	}

	/**
	 * Complete a purchase
	 *
	 * @param array $parameters
	 * @return \Omnipay\Quickpay\Message\CompletePurchaseRequest
	 */
{'fraction_non_alphanumeric': 0.14203389830508475, 'fraction_numerical': 0.0, 'mean_word_length': 4.877490039840637, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 58, 'https://': 0, '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': '865590', 'n_tokens_mistral': 1985, 'n_tokens_neox': 1812, 'n_words': 356}