BaseController.php
3 years ago
CheckoutController.php
1 month ago
CheckoutResponse.php
3 years ago
CheckoutSessionData.php
3 years ago
CheckoutTrait.php
1 month ago
FrontendController.php
1 week ago
SubscriptionPlanController.php
2 months ago
index.php
3 years ago
CheckoutResponse.php
47 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Membership\Controllers; |
| 4 | |
| 5 | class CheckoutResponse |
| 6 | { |
| 7 | public $is_success = false; |
| 8 | |
| 9 | public $redirect_url = ''; |
| 10 | |
| 11 | public $gateway_response = ''; |
| 12 | |
| 13 | public $error_message = ''; |
| 14 | |
| 15 | public function set_is_success($val) |
| 16 | { |
| 17 | $this->is_success = $val; |
| 18 | |
| 19 | return $this; |
| 20 | } |
| 21 | |
| 22 | public function set_redirect_url($val) |
| 23 | { |
| 24 | $this->redirect_url = $val; |
| 25 | |
| 26 | return $this; |
| 27 | } |
| 28 | |
| 29 | public function set_gateway_response($val) |
| 30 | { |
| 31 | $this->gateway_response = $val; |
| 32 | |
| 33 | return $this; |
| 34 | } |
| 35 | |
| 36 | public function set_error_message($val) |
| 37 | { |
| 38 | $this->error_message = $val; |
| 39 | |
| 40 | return $this; |
| 41 | } |
| 42 | |
| 43 | public function get_generic_error_message() |
| 44 | { |
| 45 | return esc_html__('Unable to complete checkout. Please try again.', 'wp-user-avatar'); |
| 46 | } |
| 47 | } |