$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')); } } Introduction to the GAR European and Middle Eastern Arbitration Review 2012 – CRCICA

Introduction to the GAR European and Middle Eastern Arbitration Review 2012

One of the GAR’s significant 2012 publications is the European and Middle Eastern Arbitration Review, a compilation of articles on arbitration from all over the two regions. CRCICA’s Director drafted the introduction to this edition of the Review, which provides an overview of recent developments in arbitration in the Middle East area touching on case law, institutional developments and legislative/ rule changes as well as the impact of the Arab Spring.

 Posted in News
 Published on Mar 31 2012

Related News

On 4 July 2023, Branch Chair, Dr. Ismail Selim, represented the Branch at the CIArb Senior Management Team Meeting. The…
On 2 December 2017, the Cairo Regional Centre for International Commercial Arbitration (CRCICA) organized the Second Cairo ICCA New York…
CRCICA Successfully Concludes Activities Under the “Support of Justice Initiatives: Curbing Corruption and Promoting Commercial Dispute Resolution” Project We are…

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