function parse_gateway_notification()
 {
     $callback_secret = get_option("oklink_wpe_callbacksecret");
     require_once dirname(__FILE__) . "/oklink/Oklink.php";
     $api_key = get_option("oklink_wpe_api_key");
     $api_secret = get_option("oklink_wpe_api_secret");
     $client = Oklink::withApiKey($api_key, $api_secret);
     if ($callback_secret != false && $callback_secret == $_REQUEST['callback_secret'] && $client->checkCallback()) {
         $post_body = json_decode(file_get_contents("php://input"));
         if (isset($post_body)) {
             $this->oklink_order = $post_body;
             $this->session_id = $this->oklink_order->custom;
         } else {
             exit("oklink Unrecognized Callback");
         }
     } else {
         exit("oklink Callback Failure");
     }
 }
 public function oklink()
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . '/API/oklink/Oklink.php';
     $api_key = '31df3053b63745b9abcf96687e7ef7f2';
     $api_secret = '43f100a4aec54d2fb78578545f645106';
     // $client = new \OkLink\withApiKey($api_key, $api_secret);
     $client = \Oklink::withApiKey($api_key, $api_secret);
     //$response = $client->listDefaultWallet();
     //var_dump($response);
     //$response = $client->createWallet(array('name'=>"yuu"));
     //$wallet_add = json_decode($response);
     //return $wallet_add;
 }