CUSTOM PAYMENT METHOD INTEGRATION GUIDELINES 1) add a init add_action(‘init’, ’custom_payment_init’); 2) init method function custom_payment_init(){ SLN_Enum_PaymentMethodProvider::addService(‘custom’’, ‘Custom’, ‘CustomPay’); } 3) custom payment class class CustomPay extends SLN_PaymentMethod_Abstract { /** * define here your custom fields for settings */ public function getFields(){ return array( ‘pay_custom_text’ ); } public function renderPayButton($data){ return $this->plugin->loadView(‘payment_method/‘.$this->getMethodKey().’/pay’, $data); } public function renderSettingsFields($data){ return $this->plugin->loadView(‘payment_method/‘.$this->getMethodKey().’/settings’, $data); } } 4) custom views views/payment_method/custom/pay.php getMethodKey() ?>” data-salon-toggle=“direct” href=“” class=“btn btn-primary”> getBookingBuilder()->getLastBooking()->getDeposit(); ?> 0): ?> format()->money($deposit), $paymentMethod->getMethodLabel()) ?> getMethodLabel()) ?>

getSettings()->get(‘pay_custom_text’) ?>

views/payment_method/custom/settings.php
row_input_text(‘pay_custom_text’, ‘enter label of payment here’); ?>
Note: you can create custom views using directly code inside renderPayButton and renderSettingsFields methods