Файловый менеджер - Редактировать - /var/www/html/pin.zip
Ðазад
PK ! �X~�m m src/Message/PurchaseRequest.phpnu �[��� <?php namespace Omnipay\Pin\Message; use Omnipay\Common\Message\AbstractRequest; /** * Pin Purchase Request */ class PurchaseRequest extends AbstractRequest { protected $liveEndpoint = 'https://api.pin.net.au/1'; protected $testEndpoint = 'https://test-api.pin.net.au/1'; public function getSecretKey() { return $this->getParameter('secretKey'); } public function setSecretKey($value) { return $this->setParameter('secretKey', $value); } public function getData() { $this->validate('amount', 'card'); $data = array(); $data['amount'] = $this->getAmountInteger(); $data['currency'] = strtolower($this->getCurrency()); $data['description'] = $this->getDescription(); $data['ip_address'] = $this->getClientIp(); $data['email'] = $this->getCard()->getEmail(); if ($this->getToken()) { $data['card_token'] = $this->getToken(); } else { $this->getCard()->validate(); $data['card']['number'] = $this->getCard()->getNumber(); $data['card']['expiry_month'] = $this->getCard()->getExpiryMonth(); $data['card']['expiry_year'] = $this->getCard()->getExpiryYear(); $data['card']['cvc'] = $this->getCard()->getCvv(); $data['card']['name'] = $this->getCard()->getName(); $data['card']['address_line1'] = $this->getCard()->getAddress1(); $data['card']['address_line2'] = $this->getCard()->getAddress2(); $data['card']['address_city'] = $this->getCard()->getCity(); $data['card']['address_postcode'] = $this->getCard()->getPostcode(); $data['card']['address_state'] = $this->getCard()->getState(); $data['card']['address_country'] = $this->getCard()->getCountry(); } return $data; } public function sendData($data) { // don't throw exceptions for 4xx errors $this->httpClient->getEventDispatcher()->addListener( 'request.error', function ($event) { if ($event['response']->isClientError()) { $event->stopPropagation(); } } ); $httpResponse = $this->httpClient->post($this->getEndpoint().'/charges', null, $data) ->setHeader('Authorization', 'Basic '.base64_encode($this->getSecretKey().':')) ->send(); return $this->response = new Response($this, $httpResponse->json()); } public function getEndpoint() { return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; } } PK ! �@�~� � src/Message/Response.phpnu �[��� <?php namespace Omnipay\Pin\Message; use Omnipay\Common\Message\AbstractResponse; /** * Pin Response */ class Response extends AbstractResponse { public function isSuccessful() { return !isset($this->data['error']); } public function getTransactionReference() { if (isset($this->data['response']['token'])) { return $this->data['response']['token']; } } public function getMessage() { if ($this->isSuccessful()) { return $this->data['response']['status_message']; } else { return $this->data['error_description']; } } } PK ! V��� src/Gateway.phpnu �[��� <?php namespace Omnipay\Pin; use Omnipay\Common\AbstractGateway; use Omnipay\Pin\Message\PurchaseRequest; /** * Pin Gateway * * @link https://pin.net.au/docs/api */ class Gateway extends AbstractGateway { public function getName() { return 'Pin'; } public function getDefaultParameters() { return array( 'secretKey' => '', 'testMode' => false, ); } public function getSecretKey() { return $this->getParameter('secretKey'); } public function setSecretKey($value) { return $this->setParameter('secretKey', $value); } public function purchase(array $parameters = array()) { return $this->createRequest('\Omnipay\Pin\Message\PurchaseRequest', $parameters); } } PK ! �|{ { composer.jsonnu �[��� { "name": "omnipay/pin", "type": "library", "description": "Pin Payments driver for the Omnipay payment processing library", "keywords": [ "gateway", "merchant", "omnipay", "pay", "payment", "pin" ], "homepage": "https://github.com/omnipay/pin", "license": "MIT", "authors": [ { "name": "Adrian Macneil", "email": "adrian@adrianmacneil.com" }, { "name": "Omnipay Contributors", "homepage": "https://github.com/omnipay/pin/contributors" } ], "autoload": { "psr-4": { "Omnipay\\Pin\\" : "src/" } }, "require": { "omnipay/common": "~2.0" }, "require-dev": { "omnipay/tests": "~2.0" }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } PK ! �X~�m m src/Message/PurchaseRequest.phpnu �[��� PK ! �@�~� � � src/Message/Response.phpnu �[��� PK ! V��� � src/Gateway.phpnu �[��� PK ! �|{ { � composer.jsonnu �[��� PK S �
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка