関数
Get::get( string $id )
説明 説明
- $id
 (文字列) (必須) checkout session ID
ファイル: src/API/CheckoutSession/Get.php
    public function get($id) {
        $headers = (new SandboxSimulation($this->module))->getCheckoutSessionSetSimCodeIfSandbox(null);
        try {
            $client = $this->module->getAmazonClient();
            $result = $client->getCheckoutSession($id, $headers);
            if ($this->module->errors->hasError($result)) {
                return $this->module->errors->getAmzErrorResponse($result, $this);
            }
        } catch (\Exception $e) {
            return $this->module->errors->getErrorResponse(
                GenericErrorStore::AMAZON_PAY_SDK_CLIENT_EXCEPTION,
                [$e->getMessage()]
            );
        }
        return $result;
    }