bad-request
3 years ago
default-process
3 years ago
default-required
3 years ago
gateway-failed
3 years ago
gateway-success
3 years ago
never
3 years ago
on-dynamic-state
3 years ago
base-action-event.php
3 years ago
base-event.php
3 years ago
base-executor.php
3 years ago
base-gateway-event.php
3 years ago
gateway-base-executor.php
3 years ago
gateway-base-executor.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Actions\Events; |
| 5 | |
| 6 | |
| 7 | abstract class Gateway_Base_Executor extends Base_Executor { |
| 8 | |
| 9 | abstract public function get_gateway_type(): string; |
| 10 | |
| 11 | public function before_execute() { |
| 12 | parent::before_execute(); |
| 13 | |
| 14 | do_action( |
| 15 | "jet-form-builder/gateways/on-payment-{$this->get_gateway_type()}", |
| 16 | jet_fb_gateway_current() |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * @return bool |
| 22 | */ |
| 23 | public function is_supported(): bool { |
| 24 | return true; |
| 25 | } |
| 26 | } |