PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
app
/
Framework
/
Payment
<?php namespace WilokeListingTools\Framework\Payment; use WilokeListingTools\Controllers\Retrieve\AjaxRetrieve; use WilokeListingTools\Controllers\RetrieveController; use WilokeListingTools\Framework\Payment\PayPal\PayPalCancelRecurringPayment; use WilokeListingTools\Framework\Payment\Stripe\StripeCancelRecurringPayment; use WilokeListingTools\Framework\Payment\WooCommerce\WooCommerceCancelRecurringPayment; class CancelSubscriptionStaticFactory { /** * @param $gateway * @param $isNonRecurringPayment * * @return mixed */ public static function get($gateway) { switch ($gateway) { case 'stripe': $oPaymentMethod = new StripeCancelRecurringPayment(); break; case 'paypal': $oPaymentMethod = new PayPalCancelRecurringPayment(); break; case 'woocommerce': $oPaymentMethod = new WooCommerceCancelRecurringPayment(); break; case 'banktransfer': break; } if (!isset($oPaymentMethod)) { $oRetrieveController = new RetrieveController(new AjaxRetrieve()); $oRetrieveController->error([ 'msg' => esc_html__('We have not found any payment gateway yet', 'wiloke-listing-tools') ]); return false; } return $oPaymentMethod; } }
[+]
..
[-] CancelSubscriptionInterface.php
[edit]
[-] SuspendSubscriptionPlan.php
[edit]
[-] Billable.php
[edit]
[-] SuspendInterface.php
[edit]
[-] StripePayment.php
[edit]
[+]
FreePlan
[-] PayPalPayment.php
[edit]
[-] WebhookHandler.php
[edit]
[-] CancelSubscriptionStaticFactory.php
[edit]
[-] CreatedPaymentHook.php
[edit]
[-] RefundFactory.php
[edit]
[+]
Stripe
[+]
PaymentHook
[-] Checkout.php
[edit]
[+]
DirectBankTransfer
[-] RefundInterface.php
[edit]
[-] Coupon.php
[edit]
[-] ProceededPaymentHook.php
[edit]
[-] AbstractSuspend.php
[edit]
[-] AddListingRetrieve.php
[edit]
[-] PaymentMethodInterface.php
[edit]
[+]
Invoice
[+]
PayPal
[+]
Receipt
[-] ChangePlanInterface.php
[edit]
[-] WebhookInterface.php
[edit]
[+]
WooCommerce
[-] PaymentGatewayStaticFactory.php
[edit]
[-] Receipt.php
[edit]