| @@ -15,8 +15,9 @@ | ||
| 15 | 15 | 'notifications_before' => _x( 'Before payment processed:', 'Gateways editor data', 'jet-form-builder' ), |
| 16 | 16 | 'notifications_success' => _x( 'On successful payment:', 'Gateways editor data', 'jet-form-builder' ), |
| 17 | 17 | 'notifications_failed' => _x( 'On failed payment:', 'Gateways editor data', 'jet-form-builder' ), |
| 18 | 18 | 'price_field' => _x( 'Price/amount field', 'Gateways editor data', 'jet-form-builder' ), |
| 19 | + 'protect_price_field' => _x( 'Secure payment amount', 'Gateways editor data', 'jet-form-builder' ), | |
| 19 | 20 | 'message_success' => _x( 'Payment success message', 'Gateways editor data', 'jet-form-builder' ), |
| 20 | 21 | 'message_failed' => _x( 'Payment failed message', 'Gateways editor data', 'jet-form-builder' ), |
| 21 | 22 | 'use_success_redirect' => _x( 'Redirect to a page', 'Gateways editor data', 'jet-form-builder' ), |
| 22 | 23 | 'action_order' => _x( 'Create payment order notification:', 'Gateways editor data', 'jet-form-builder' ), |
| @@ -23,8 +24,30 @@ | ||
| 23 | 24 | 'use_success_redirect_help' => _x( |
| 24 | 25 | 'Enable this toggle to redirect a user after successful payment.', |
| 25 | 26 | 'Gateways editor data', |
| 26 | 27 | 'jet-form-builder' |
| 28 | + ), | |
| 29 | + 'protect_price_field_help' => _x( | |
| 30 | + 'Applies to all gateways linked to the price field.', | |
| 31 | + 'Gateways editor data', | |
| 32 | + 'jet-form-builder' | |
| 33 | + ), | |
| 34 | + 'protect_price_field_risk' => _x( | |
| 35 | + 'Disabled: the gateway strictly trusts the price submitted by the browser(Unsecure).', | |
| 36 | + 'Gateways editor data', | |
| 37 | + 'jet-form-builder' | |
| 38 | + ), | |
| 39 | + 'protect_price_field_safe' => array( | |
| 40 | + 'valid' => _x( | |
| 41 | + 'Calculated Field, Hidden Field (Render in HTML disabled), Select/Radio/Checkbox fields with calculate values, JetBooking price macros (e.g. %ADVANCED_PRICE::...%, %BOOKING_UNITS::...%).', | |
| 42 | + 'Gateways editor data', | |
| 43 | + 'jet-form-builder' | |
| 44 | + ), | |
| 45 | + 'invalid' => _x( | |
| 46 | + 'Text/Number/Date fields, Hidden Field (Render in HTML enabled), post meta macros (e.g. %META::...%).', | |
| 47 | + 'Gateways editor data', | |
| 48 | + 'jet-form-builder' | |
| 49 | + ), | |
| 27 | 50 | ), |
| 28 | 51 | ), |
| 29 | 52 | $this->options_labels(), |
| 30 | 53 | $this->custom_labels() |