빌링키 받는 404 NOT_FOUND 가 발생 합니다.
override suspend fun tossByBilling(tossApiClientBillingRequest: TossApiClientBillingRequest): TossClientBillingResponse {
val encodedKey = PfTossUtil.encodeSecretKey(tossSecretKey)
val billingKey = tossApiClientBillingRequest.billingKey
return tossApiWebClient
.post()
.uri("/v1/billing/$billingKey")
.header("Authorization", "Basic $encodedKey")
.contentType(MediaType.APPLICATION_JSON)
.bodyValue(tossApiClientBillingRequest)
.retrieve()
.awaitBody<TossClientBillingResponse>()
}
2025-09-17 14:46:52 - [37be22a5] HTTP POST https://api.tosspayments.com/v1/billing/authorizations/issue
2025-09-17 14:46:52 - [37be22a5] Encoding [TossApiClientBillingAuthRequest(authKey=bln_JG2xZO2R9Yw, customerKey=0199561f-a448-7680-b5ee-868b76b (truncated)...]
2025-09-17 14:46:52 - [37be22a5] [c69b53bb-1] Response 404 NOT_FOUND
위에 처럼 요청 했는데 404가 발생 합니다.
결제 하기는 정상적으로 결제가 되고 있고요
val encodedKey = PfTossUtil.encodeSecretKey(tossSecretKey)
val billingKey = tossApiClientBillingRequest.billingKey
return tossApiWebClient
.post()
.uri("/v1/billing/$billingKey")
.header("Authorization", "Basic $encodedKey")
.contentType(MediaType.APPLICATION_JSON)
.bodyValue(tossApiClientBillingRequest)
.retrieve()
.awaitBody<TossClientBillingResponse>()
}
2025-09-17 14:46:52 - [37be22a5] HTTP POST https://api.tosspayments.com/v1/billing/authorizations/issue
2025-09-17 14:46:52 - [37be22a5] Encoding [TossApiClientBillingAuthRequest(authKey=bln_JG2xZO2R9Yw, customerKey=0199561f-a448-7680-b5ee-868b76b (truncated)...]
2025-09-17 14:46:52 - [37be22a5] [c69b53bb-1] Response 404 NOT_FOUND
위에 처럼 요청 했는데 404가 발생 합니다.
결제 하기는 정상적으로 결제가 되고 있고요
