cipf added new class for when state is not buying a new card at 5€
This commit is contained in:
@@ -34,8 +34,9 @@ function handle_orders_request_CIPF($request_data) {
|
||||
*/
|
||||
try {
|
||||
$can_pay = check_can_pay_CIPF();
|
||||
if (is_wp_error($can_pay))
|
||||
if (is_wp_error($can_pay)) {
|
||||
throw new HttpException('not allowed to pay : ' . $can_pay->get_error_message(), 403);
|
||||
}
|
||||
|
||||
$order_response = create_order_CIPF();
|
||||
$json_response = $order_response['json_response'];
|
||||
|
||||
Reference in New Issue
Block a user