pay-now.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Gateways\Paypal\Scenarios_Views; |
| 5 | |
| 6 | use Jet_Form_Builder\Gateways\Paypal\Rest_Endpoints\Fetch_Pay_Now_Editor; |
| 7 | use Jet_Form_Builder\Gateways\Paypal\Scenarios_Connectors; |
| 8 | use Jet_Form_Builder\Gateways\Scenarios_Abstract\Scenario_View_Base; |
| 9 | |
| 10 | class Pay_Now extends Scenario_View_Base { |
| 11 | |
| 12 | use Scenarios_Connectors\Pay_Now; |
| 13 | |
| 14 | public function get_title(): string { |
| 15 | return _x( 'Pay Now', 'Paypal gateway editor data', 'jet-form-builder' ); |
| 16 | } |
| 17 | |
| 18 | public function get_editor_labels(): array { |
| 19 | return array( |
| 20 | 'currency' => __( 'Currency Code', 'jet-form-builder' ), |
| 21 | 'fetch_button' => __( 'Sync Access Token', 'jet-form-builder' ), |
| 22 | 'fetch_button_retry' => __( 'Access Token updated', 'jet-form-builder' ), |
| 23 | 'fetch_button_label' => __( 'Request Button', 'jet-form-builder' ), |
| 24 | 'fetch_button_help' => __( 'Click on the button to further manage the payment settings', 'jet-form-builder' ), |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | public function get_editor_data(): array { |
| 29 | return array( |
| 30 | 'fetch' => array( |
| 31 | 'method' => Fetch_Pay_Now_Editor::get_methods(), |
| 32 | 'url' => Fetch_Pay_Now_Editor::rest_url(), |
| 33 | ), |
| 34 | ); |
| 35 | } |
| 36 | |
| 37 | } |
| 38 |