PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
app
/
Framework
/
Payment
/
PayPal
<?php namespace WilokeListingTools\Framework\Payment\PayPal; use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException; trait PayPalGenerateUrls{ public function thankyouUrl(){ if ( empty($this->oReceipt->thankyouUrl) ){ wp_send_json_error( array( 'msg' => esc_html__('The thankyou page is required.', 'wiloke-listing-tools') ) ); } $this->thankyouUrl = add_query_arg( array( 'billingType' => $this->getBillingType(), 'planID' => $this->oReceipt->aPlan['ID'] ), $this->oReceipt->thankyouUrl ); return urlencode($this->thankyouUrl); } public function cancelUrl(){ if ( empty($this->oReceipt->cancelUrl) ){ wp_send_json_error( array( 'msg' => esc_html__('The cancel page is required. Please go to Wiloke Submission -> Cancel Page to setup it.', 'wiloke-listing-tools') ) ); } $this->cancelUrl = add_query_arg( array( 'billingType' => $this->getBillingType(), 'planID' => $this->oReceipt->aPlan['ID'] ), $this->oReceipt->cancelUrl ); } }
[+]
..
[-] 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]