PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Modules/PaymentMethods/Cod/Cod.php +4 -5 1.5.3 → 1.6.5 View file →
@@ -15,9 +15,9 @@
15 15
16 16
17 17 class Cod extends AbstractPaymentGateway
18 18 {
19 - public array $supportedFeatures = ['payment', 'refund', 'subscriptions'];
19 + public array $supportedFeatures = ['payment', 'refund', 'offline'];
20 20
21 21 public BaseGatewaySettings $settings;
22 22
23 23 public function boot()
@@ -49,16 +49,15 @@
49 49 }
50 50
51 51 public function __construct()
52 52 {
53 - parent::__construct(
54 - new CodSettingsBase(),
55 - new CodSubscriptions()
56 - );
53 + parent::__construct(new CodSettingsBase());
57 54 }
58 55
59 56 public function makePaymentFromPaymentInstance(PaymentInstance $paymentInstance)
60 57 {
58 + $this->maybeConvertToManualSubscription($paymentInstance);
59 +
61 60 try {
62 61 return [
63 62 'status' => 'success',
64 63 'message' => __('Order has been placed successfully', 'fluent-cart'),