$lang = !empty($payment->language_code) ? sanitize_text_field($payment->language_code) : 'en'; // 1. Build the API payload $payload = array( 'apiOperation' => 'INITIATE_CHECKOUT', 'interaction' => array( 'operation' => 'PURCHASE', 'merchant' => array( 'name' => get_bloginfo('name'), ), 'displayControl' => array( 'billingAddress' => 'HIDE' // This hides the billing address section in MPGS ) ), 'order' => array( 'amount' => number_format((float)$payment->amount, 2, '.', ''), 'currency' => 'EGP', 'id' => (string)$payment_id, ) ); // 2. Setup the request arguments $args = array( 'body' => wp_json_encode($payload), 'headers' => array( 'Content-Type' => 'application/json; charset=utf-8', 'Authorization' => 'Basic ' . base64_encode("merchant." . $gateway->merchant_id . ":" . $password), ), 'timeout' => 45, 'method' => 'POST', 'data_format' => 'body', ); // 3. Send remote request to MPGS $response = wp_remote_post($endpoint, $args); if (is_wp_error($response)) { $this->logger->log('Session creation failed: ' . $response->get_error_message()); return $response; } $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (isset($data['result']) && $data['result'] === 'SUCCESS') { // Update your payment entity with $data['session']['id'] here $session_id = $data['session']['id']; $token = $this->get_or_create_token($payment_id); return $this->build_redirect_url($session_id, $token); } return new WP_Error('session_failed', __('Failed to initialize payment session.', 'crcica-eventbridge')); } } CIARB EGYPT BRANCH Seminar: “Non-arbitration of disputes before international arbitration on the grounds that it is illegal. – CRCICA

CIARB EGYPT BRANCH Seminar: “Non-arbitration of disputes before international arbitration on the grounds that it is illegal.

9 January 2024 Seminar on “Non-arbitration of disputes before international arbitration on the grounds that it is illegal.” (in Arabic)

Speaker: Dr. Ibrahim El Ananny

Moderator: Ambassador Mohamed Mustafa Kamal

Watch Video.

 Posted in News
 Published on Jan 09 2024

Related News

Cairo, Egypt – March 13, 2025 – The Cairo Regional Centre for International Commercial Arbitration (CRCICA) and Alexandria University's Faculty…
On 3 October 2023,  Dr. Ismail Selim took part in the Law Symposium hosted by the Embassy of France in…
Al Tamimi & Company Abu Dhabi Within the context of informing the Arab Legal Community about CRCICA's latest developments, on…

Terms & Conditions | Privacy Policy
Copyright 2022 Cairo Regional Centre for International Commercial Arbitration. All Rights Reserved.