Файловый менеджер - Редактировать - /var/www/html/omnipay-payflow-extended.zip
Ðазад
PK ! $�� � / src/Message/RecurringProfileInquiryResponse.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\Response; class RecurringProfileInquiryResponse extends Response { protected $card; public function isSuccessful() { return isset($this->data['RESULT']) && '0' === $this->data['RESULT']; } public function getCard() { if (!$this->card) { $this->card = new CreditCard; $this->card->setNumber($this->data['ACCT']); } return $this->card; } public function getStart() { return isset($this->data['START']) ? $this->data['START'] : null; } } PK ! od�V V . src/Message/RecurringProfileUpdateResponse.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\Response; class RecurringProfileUpdateResponse extends Response { protected $card; public function isSuccessful() { return isset($this->data['RESULT']) && '0' === $this->data['RESULT']; } } PK ! �o~ ~ 2 src/Message/RecurringProfileDeactivateResponse.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\Response; class RecurringProfileDeactivateResponse extends Response { protected $card; public function isSuccessful() { return isset($this->data['RESULT']) && ('0' === $this->data['RESULT'] || '33' === $this->data['RESULT']); } } PK ! �PO0 0 - src/Message/RecurringProfileUpdateRequest.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\AuthorizeRequest; /** * Payflow Recurring Billing Add Profile Request */ class RecurringProfileUpdateRequest extends AuthorizeRequest { protected $trxtype = 'R'; protected $action = 'M'; // A-Add, M-Modify, R-Reactivate, C-Cancel, I-Update, P-Retry failed pmt public function getProfileID() { return $this->getParameter('profileID'); } public function setProfileID($value) { return $this->setParameter('profileID', $value); } protected function getBaseData() { $data = array(); $data['TRXTYPE'] = $this->trxtype; $data['USER'] = $this->getUsername(); $data['PWD'] = $this->getPassword(); $data['VENDOR'] = $this->getVendor(); $data['PARTNER'] = $this->getPartner(); $data['ACTION'] = $this->action; $data['TENDER'] = 'C'; return $data; } public function getData() { $data = $this->getBaseData(); $data['ORIGPROFILEID'] = $this->getProfileID(); if (!empty($this->getAmount())) { $data['AMT'] = $this->getAmount(); } if (!empty($this->getTransactionReference())) { $data['ORIGID'] = $this->getTransactionReference(); } return $data; } public function sendData($data) { $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->encodeData($data))->send(); return $this->response = new RecurringProfileUpdateResponse($this, $httpResponse->getBody()); } }PK ! ӈ�_ _ + src/Message/RecurringProfileAddResponse.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\Response; class RecurringProfileAddResponse extends Response { // this is the optional sale or authorization transaction public function isSuccessful() { return isset($this->data['TRXRESULT']) && '0' === $this->data['TRXRESULT']; } // this is the optional sale or authorization transaction public function getTransactionReference() { return isset($this->data['TRXPNREF']) ? $this->data['TRXPNREF'] : null; } // this is the optional sale or authorization transaction public function getMessage() { return isset($this->data['RESPMSG']) ? $this->data['RESPMSG'] : null; } // this is for the profile action public function isProfileActionSuccessful() { return isset($this->data['RESULT']) && '0' === $this->data['RESULT']; } // this is for the profile action public function getProfileReference() { return isset($this->data['RPREF']) ? $this->data['RPREF'] : null; } // this is for the profile action public function getProfileID() { return isset($this->data['PROFILEID']) ? $this->data['PROFILEID'] : null; } } PK ! tf.� * src/Message/RecurringProfileAddRequest.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\AuthorizeRequest; /** * Payflow Recurring Billing Add Profile Request */ class RecurringProfileAddRequest extends AuthorizeRequest { protected $trxtype = 'R'; protected $action = 'A'; // A-Add, M-Modify, R-Reactivate, C-Cancel, I-Inquiry, P-Retry failed pmt public function getProfileName() { return $this->getParameter('profileName'); } public function setProfileName($value) { return $this->setParameter('profileName', $value); } public function getStartDate() { return $this->getParameter('startDate'); } // MMDDYYYY public function setStartDate($value) { return $this->setParameter('startDate', $value); } public function getTerm() { return $this->getParameter('term'); } public function setTerm($value) { return $this->setParameter('term', $value); } public function getPayPeriod() { return $this->getParameter('payPeriod'); } // SMMO = 2x month, MONT = Monthly, BIWK = every 2 weeks, WEEK = weekly public function setPayPeriod($value) { return $this->setParameter('payPeriod', $value); } protected function getBaseData() { $data = array(); $data['TRXTYPE'] = $this->trxtype; $data['USER'] = $this->getUsername(); $data['PWD'] = $this->getPassword(); $data['VENDOR'] = $this->getVendor(); $data['PARTNER'] = $this->getPartner(); $data['ACTION'] = $this->action; $data['TENDER'] = 'C'; return $data; } public function getData() { $this->validate('amount', 'card'); $this->getCard()->validate(); $data = $this->getBaseData(); $data['PROFILENAME'] = $this->getProfileName(); $data['ACCT'] = $this->getCard()->getNumber(); $data['EXPDATE'] = $this->getCard()->getExpiryDate('my'); $data['CVV2'] = $this->getCard()->getCvv(); $data['OPTIONALTRX'] = 'A'; // this is an authorization only, S = actual sale (require OPTIONALTRXAMT) $data['AMT'] = $this->getAmount(); $data['START'] = $this->getStartDate(); $data['TERM'] = $this->getTerm(); // # payments $data['PAYPERIOD'] = $this->getPayPeriod(); $data['COMMENT1'] = $this->getComment1(); //$data['COMMENT2'] = $this->getComment2(); $data['EMAIL'] = $this->getCard()->getEmail(); $data['FIRSTNAME'] = $this->getCard()->getFirstName(); $data['LASTNAME'] = $this->getCard()->getLastName(); $data['STREET'] = $this->getCard()->getAddress1(); $data['CITY'] = $this->getCard()->getCity(); $data['STATE'] = $this->getCard()->getState(); $data['ZIP'] = $this->getCard()->getPostcode(); $data['COUNTRY'] = $this->getCard()->getCountry(); return $data; } public function sendData($data) { $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->encodeData($data))->send(); return $this->response = new RecurringProfileAddResponse($this, $httpResponse->getBody()); } }PK ! �z�� . src/Message/RecurringProfileInquiryRequest.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\AuthorizeRequest; /** * Payflow Recurring Billing Add Profile Request */ class RecurringProfileInquiryRequest extends AuthorizeRequest { protected $trxtype = 'R'; protected $action = 'I'; // A-Add, M-Modify, R-Reactivate, C-Cancel, I-Inquiry, P-Retry failed pmt public function getProfileID() { return $this->getParameter('profileID'); } public function setProfileID($value) { return $this->setParameter('profileID', $value); } protected function getBaseData() { $data = array(); $data['TRXTYPE'] = $this->trxtype; $data['USER'] = $this->getUsername(); $data['PWD'] = $this->getPassword(); $data['VENDOR'] = $this->getVendor(); $data['PARTNER'] = $this->getPartner(); $data['ACTION'] = $this->action; $data['TENDER'] = 'C'; return $data; } public function getData() { $data = $this->getBaseData(); $data['ORIGPROFILEID'] = $this->getProfileID(); return $data; } public function sendData($data) { $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->encodeData($data))->send(); return $this->response = new RecurringProfileInquiryResponse($this, $httpResponse->getBody()); } }PK ! ��~�! ! 1 src/Message/RecurringProfileDeactivateRequest.phpnu �[��� <?php namespace Omnipay\PayflowExtended\Message; use Omnipay\Payflow\Message\AuthorizeRequest; /** * Payflow Recurring Billing Add Profile Request */ class RecurringProfileDeactivateRequest extends AuthorizeRequest { protected $trxtype = 'R'; protected $action = 'C'; // A-Add, M-Modify, R-Reactivate, C-Cancel, I-Inquiry, P-Retry failed pmt public function getProfileID() { return $this->getParameter('profileID'); } public function setProfileID($value) { return $this->setParameter('profileID', $value); } protected function getBaseData() { $data = array(); $data['TRXTYPE'] = $this->trxtype; $data['USER'] = $this->getUsername(); $data['PWD'] = $this->getPassword(); $data['VENDOR'] = $this->getVendor(); $data['PARTNER'] = $this->getPartner(); $data['ACTION'] = $this->action; $data['TENDER'] = 'C'; return $data; } public function getData() { $data = $this->getBaseData(); $data['ORIGPROFILEID'] = $this->getProfileID(); return $data; } public function sendData($data) { $httpResponse = $this->httpClient->post($this->getEndpoint(), null, $this->encodeData($data))->send(); return $this->response = new RecurringProfileDeactivateResponse($this, $httpResponse->getBody()); } }PK ! �:#3� � src/Gateway.phpnu �[��� <?php namespace Omnipay\PayflowExtended; use Omnipay\Payflow\ProGateway; /** * Payflow Pro Extended class * * @author Marshall Miller * @link https://www.x.com/sites/default/files/payflowgateway_guide.pdf */ class Gateway extends ProGateway { public function getName() { return 'PayflowExtended'; } public function addRecurringProfile(Array $parameters = array()) { return $this->createRequest('\Omnipay\PayflowExtended\Message\RecurringProfileAddRequest', $parameters); } public function recurringProfileInquiry(Array $parameters = array()) { return $this->createRequest('\Omnipay\PayflowExtended\Message\RecurringProfileInquiryRequest', $parameters); } public function deactivateRecurringProfile(Array $parameters = array()) { return $this->createRequest('\Omnipay\PayflowExtended\Message\RecurringProfileDeactivateRequest', $parameters); } public function updateRecurringProfile(Array $parameters = array()) { return $this->createRequest('\Omnipay\PayflowExtended\Message\RecurringProfileUpdateRequest', $parameters); } }PK ! $�� � / src/Message/RecurringProfileInquiryResponse.phpnu �[��� PK ! od�V V . 5 src/Message/RecurringProfileUpdateResponse.phpnu �[��� PK ! �o~ ~ 2 � src/Message/RecurringProfileDeactivateResponse.phpnu �[��� PK ! �PO0 0 - � src/Message/RecurringProfileUpdateRequest.phpnu �[��� PK ! ӈ�_ _ + V src/Message/RecurringProfileAddResponse.phpnu �[��� PK ! tf.� * src/Message/RecurringProfileAddRequest.phpnu �[��� PK ! �z�� . {"