PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
app
/
Framework
/
Payment
/
PayPal
<?php namespace WilokeListingTools\Framework\Payment\PayPal; use WilokeListingTools\Framework\Helpers\FileSystem; use WilokeListingTools\Framework\Store\Session; use WilokeListingTools\Models\PaymentMetaModel; class PayPalExecutePromotionPayment extends PayPalExecutePaymentAbstract { public $token; protected $paymentID; public function verify() { $this->token = $_GET['token']; $this->paymentID = PaymentMetaModel::getPaymentIDByToken($this->token); if (empty($this->paymentID)) { Session::setSession('payment_error', esc_html__('Invalid PayPal Token', 'wiloke-listing-tools')); FileSystem::logError('We could not found payment id by this token '.$_GET['token']); return false; } $aPaymentMetaInfo = PaymentMetaModel::getPaymentInfo($this->paymentID); if (!isset($aPaymentMetaInfo['postID']) || empty($aPaymentMetaInfo['postID'])) { Session::setSession('payment_error', esc_html__('We found no Post ID', 'wiloke-listing-tools')); FileSystem::logError('We found no Post ID in the Payment Meta. Payment ID: '.$this->paymentID); return false; } return true; } }
[+]
..
[-] PayPalConfiguration.php
[edit]
[-] PayPalRefundNonRecurringPayment.php
[edit]
[-] Webhook.php
[edit]
[-] PayPalRecurringPaymentMethod.php
[edit]
[-] PayPalExecuteRecurringPayment.php
[edit]
[-] PayPalProceededRecurringPaymentHook.php
[edit]
[-] PayPalCancelPlan.php
[edit]
[-] PayPalHelps.php
[edit]
[-] PayPalWebhook.php
[edit]
[-] PayPalGetBillingAgreement.php
[edit]
[-] PayPalAuthentication.php
[edit]
[-] PayPalSuspendPlan.php
[edit]
[-] PayPalValidations.php
[edit]
[-] cert_key.pem
[edit]
[-] PayPalExecuteInterface.php
[edit]
[-] PayPalRecurringPrepareInvoiceFormat.php
[edit]
[-] ConvertPayPalStatusToWilokeStatus.php
[edit]
[-] PayPalChangePlan.php
[edit]
[-] PayPalSetupAPIContext.php
[edit]
[-] PayPalNonRecurringPrepareInvoiceFormat.php
[edit]
[-] PayPalNonRecurringPaymentMethod.php
[edit]
[-] PayPalCancelRecurringPayment.php
[edit]
[-] PayPalExecutePaymentAbstract.php
[edit]
[-] PayPalProceededNonRecurringPaymentHook.php
[edit]
[-] PayPalNonRecurringCreatedPaymentHook.php
[edit]
[-] RemainingItemsInNonRecurringPayPal.php
[edit]
[-] PaypalUpdateBillingAgreement.php
[edit]
[-] ChangePlan.php
[edit]
[-] PayPalReactivePlan.php
[edit]
[-] PayPalExecutePromotionPayment.php
[edit]
[-] PayPalGetSubscriptionStatus.php
[edit]
[-] PayPalRecurringCreatedPaymentHook.php
[edit]
[-] PayPalGenerateUrls.php
[edit]
[-] PayPalExecuteNonRecurringPayment.php
[edit]