Server IP : 192.158.238.246 / Your IP : 18.223.162.245 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/task/7779/cwd/plugins/give/src/Framework/PaymentGateways/ |
Upload File : |
<?php namespace Give\Framework\PaymentGateways; use Give\Framework\PaymentGateways\Contracts\Subscription\SubscriptionAmountEditable; use Give\Framework\PaymentGateways\Contracts\Subscription\SubscriptionDashboardLinkable; use Give\Framework\PaymentGateways\Contracts\Subscription\SubscriptionPausable; use Give\Framework\PaymentGateways\Contracts\Subscription\SubscriptionPaymentMethodEditable; use Give\Framework\PaymentGateways\Contracts\Subscription\SubscriptionResumable; use Give\Framework\PaymentGateways\Contracts\Subscription\SubscriptionTransactionsSynchronizable; use Give\Framework\PaymentGateways\Contracts\SubscriptionModuleInterface; use Give\Framework\PaymentGateways\Traits\HasRouteMethods; /** * @since 2.20.0 * * @template G */ abstract class SubscriptionModule implements SubscriptionModuleInterface { use HasRouteMethods; /** * @var G */ protected $gateway; /** * @param G $gateway */ public function setGateway(PaymentGateway $gateway) { $this->gateway = $gateway; } /** * @since 3.17.0 */ public function canPauseSubscription(): bool { return $this instanceof SubscriptionPausable; } /** * @inheritDoc */ public function canSyncSubscriptionWithPaymentGateway(): bool { return $this instanceof SubscriptionTransactionsSynchronizable; } /** * @inheritDoc */ public function canUpdateSubscriptionAmount(): bool { return $this instanceof SubscriptionAmountEditable; } /** * @inheritDoc */ public function canUpdateSubscriptionPaymentMethod(): bool { return $this instanceof SubscriptionPaymentMethodEditable; } /** * @since 2.21.2 */ public function hasGatewayDashboardSubscriptionUrl(): bool { return $this instanceof SubscriptionDashboardLinkable; } }