Server IP : 66.29.132.124 / Your IP : 3.147.27.152 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/omnipay/paypal/src/ |
Upload File : |
<?php namespace Omnipay\PayPal; use Omnipay\Common\AbstractGateway; /** * PayPal Pro Class */ class ProGateway extends AbstractGateway { public function getName() { return 'PayPal Pro'; } public function getDefaultParameters() { return array( 'username' => '', 'password' => '', 'signature' => '', 'testMode' => false, ); } public function getUsername() { return $this->getParameter('username'); } public function setUsername($value) { return $this->setParameter('username', $value); } public function getPassword() { return $this->getParameter('password'); } public function setPassword($value) { return $this->setParameter('password', $value); } public function getSignature() { return $this->getParameter('signature'); } public function setSignature($value) { return $this->setParameter('signature', $value); } public function authorize(array $parameters = array()) { return $this->createRequest('\Omnipay\PayPal\Message\ProAuthorizeRequest', $parameters); } public function purchase(array $parameters = array()) { return $this->createRequest('\Omnipay\PayPal\Message\ProPurchaseRequest', $parameters); } public function capture(array $parameters = array()) { return $this->createRequest('\Omnipay\PayPal\Message\CaptureRequest', $parameters); } public function refund(array $parameters = array()) { return $this->createRequest('\Omnipay\PayPal\Message\RefundRequest', $parameters); } public function fetchTransaction(array $parameters = array()) { return $this->createRequest('\Omnipay\PayPal\Message\FetchTransactionRequest', $parameters); } }