8000 Added dynamic callbacks mode functionality by Alex-Sh · Pull Request #1 · dercoder/omnipay-ecopayz · GitHub
[go: up one dir, main page]

Skip to content

Added dynamic callbacks mode functionality #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reverting first version of callback functionality
  • Loading branch information
Alexander Shovdra committed Jul 17, 2016
commit 3dff894bfc01561d579e665812023e5ea9990146
114 changes: 0 additions & 114 deletions src/Omnipay/Ecopayz/Message/PurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ public function getData()
$data['Amount'] = $this->getAmount();
$data['Currency'] = $this->getCurrency();
$data['MerchantFreeText'] = $this->getDescription();
$data['OnSuccessUrl'] = $this->getOnSuccessUrl();
$data['OnFailureUrl'] = $this->getOnFailureUrl();
$data['TransferUrl'] = $this->getTransferUrl();
$data['CancellationUrl'] = $this->getCancellationUrl();
$data['CallbackUrl'] = $this->getCallbackUrl();
$data['Checksum'] = $this->calculateArrayChecksum($data);

return $data;
Expand All @@ -85,113 +80,4 @@ public function sendData($data)
{
return new PurchaseResponse($this, $data);
}

/**
* SET/GET Callback URL's for dynamic mode
*/

/**
* Set the success cb url
*
* @param string $value success cb url
* @return self
*/
public function setOnSuccessUrl($value)
{
return $this->setParameter('OnSuccessUrl', $value);
}

/**
* Get the success cb url
*
* @return string success cb url
*/
public function getOnSuccessUrl()
{
return $this->getParameter('OnSuccessUrl');
}

/**
* Set the failure cb url
*
* @param string $value failure cb url
* @return self
*/
public function setOnFailureUrl($value)
{
return $this->setParameter('OnFailureUrl', $value);
}

/**
* Get the failure cb url
*
* @return string failure cb url
*/
public function getOnFailureUrl()
{
return $this->getParameter('OnFailureUrl');
}

/**
* Set the transfer cb url
*
* @param string $value transfer cb url
* @return self
*/
public function setTransferUrl($value)
{
return $this->setParameter('TransferUrl', $value);
}

/**
* Get the transfer cb url
*
* @return string transfer cb url
*/
public function getTransferUrl()
{
return $this->getParameter('TransferUrl');
}

/**
* Set the cancellation cb url
*
* @param string $value cancellation cb url
* @return self
*/
public function setCancellationUrl($value)
{
return $this->setParameter('CancellationUrl', $value);
}

/**
* Get the cancellation cb url
*
* @return string cancellation cb url
*/
public function getCancellationUrl()
{
return $this->getParameter('CancellationUrl');
}

/**
* Set the callback cb url
*
* @param string $value callback cb url
* @return self
*/
public function setCallbackUrl($value)
{
return $this->setParameter('CallbackUrl', $value);
}

/**
* Get the callback cb url
*
* @return string callback cb url
*/
public function getCallbackUrl()
{
return $this->getParameter('CallbackUrl');
}
}
0