golden hour
/home/godaofbq/besthyperbaric.com/wp-content/plugins/fluentform/app/Modules/Payments/PaymentMethods
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
420 B
Del
OK
BasePaymentMethod.php
842 B
Del
OK
BaseProcessor.php
37.5 KB
Del
OK
Stripe
-
Del
OK
Edit: BasePaymentMethod.php
<?php namespace FluentForm\App\Modules\Payments\PaymentMethods; if (!defined('ABSPATH')) { exit; // Exit if accessed directly. } abstract class BasePaymentMethod { protected $key = ''; protected $settingsKey = ''; public function __construct($key) { $this->key = $key; $this->settingsKey = 'fluentform_payment_settings_'.$key; add_filter('fluentform/payment_methods_global_settings', function ($methods) { $fields = $this->getGlobalFields(); if($fields) { $methods[$this->key] = $fields; } return $methods; }); add_filter('fluentform/payment_settings_' . $this->key, array($this, 'getGlobalSettings')); } abstract public function getGlobalFields(); abstract public function getGlobalSettings(); }
Save