현금 영수증 실패 문의



.
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tosspayments.com/v1/cash-receipts/".$receiptKey."/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{"receiptKey":"$receiptKey"}",
CURLOPT_HTTPHEADER => [
"Authorization: Basic ".$secretKey,
"Content-Type: application/json"
],
]);

.

{
"code":"FAILED_INTERNAL_SYSTEM_PROCESSING",
"message":". ."
}



$url = "https://api.tosspayments.com/v1/cash-receipts/".$receiptKey."/cancel";
$response = Http::withHeaders([
"Authorization" => "Basic " . $secretKey,
])->post($url);


{
"code":"INVALID_REQUEST","message":"."
}

. ?
Was this page helpful?