| @@ -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'), |