갑자기 정기결제가 실패합니다.
그동안 잘 되다가 갑자기 이번달부터 아래와 같은 오류가 나오면서 정기결제가 실패하기 시작합니다. 홈페이지상에선 딱히 건드린 것이 없는데 이유가 무엇일까요?
POST /v1/billing/MTfgOAk5XcgmGp2k2IaWSEc9yytHcHDUnmWPgJudFyI=
응답 상태
400
상점아이디(MID)
CDM_b_pronabfb
paymentKey
orderId
X-Tosspayments-Trace-Id
b995605505327307ee57e65de735fa3b
요청 시간
2025-12-06 14:35:28
Response Body
{
"code": "NOT_MATCHES_CUSTOMER_KEY",
"message": "빌링 인증 고객키와 결제 요청 고객키가 일치하지 않습니다."
}
에러 원인
빌링키 생성시에 보낸 customerkey와 결제 승인시 보낸 customerkey가 다를 때 발생합니다.
해결 방법
빌링키 생성할 때와 결제 승인할 때 보낸 customerKey 값을 동일하게 설정하세요.
Response Header
{
"X-TossPayments-Trace-Id": "b995605505327307ee57e65de735fa3b"
}
Request Body
{
"customerKey": "CDM_b_pronabfb_146",
"amount": 100000,
"taxFreeAmount": 100000,
"taxExemptionAmount": 0,
"orderId": "11779_251206_053528",
"orderName": "홈페이지 제작 서비스",
"cardInstallmentPlan": null,
"customerName": "김태",
"customerEmail": "kd**@gmail.com",
"customerIp": null,
"dividedSettlementInfo": null,
"useHyundaiVoucher": false,
"productCode": null,
"useCardPoint": null,
"customBusinessNumber": null,
"customerMobilePhone": null
}
Request Headers
{
"authorization": "Basic bGl2Z**",
"user-agent": "GuzzleHttp/6.5.5 curl/7.29.0 PHP/7.3.20",
"content-type": "application/json; charset=utf-8"
}
POST /v1/billing/MTfgOAk5XcgmGp2k2IaWSEc9yytHcHDUnmWPgJudFyI=
응답 상태
400
상점아이디(MID)
CDM_b_pronabfb
paymentKey
orderId
X-Tosspayments-Trace-Id
b995605505327307ee57e65de735fa3b
요청 시간
2025-12-06 14:35:28
Response Body
{
"code": "NOT_MATCHES_CUSTOMER_KEY",
"message": "빌링 인증 고객키와 결제 요청 고객키가 일치하지 않습니다."
}
에러 원인
빌링키 생성시에 보낸 customerkey와 결제 승인시 보낸 customerkey가 다를 때 발생합니다.
해결 방법
빌링키 생성할 때와 결제 승인할 때 보낸 customerKey 값을 동일하게 설정하세요.
Response Header
{
"X-TossPayments-Trace-Id": "b995605505327307ee57e65de735fa3b"
}
Request Body
{
"customerKey": "CDM_b_pronabfb_146",
"amount": 100000,
"taxFreeAmount": 100000,
"taxExemptionAmount": 0,
"orderId": "11779_251206_053528",
"orderName": "홈페이지 제작 서비스",
"cardInstallmentPlan": null,
"customerName": "김태",
"customerEmail": "kd**@gmail.com",
"customerIp": null,
"dividedSettlementInfo": null,
"useHyundaiVoucher": false,
"productCode": null,
"useCardPoint": null,
"customBusinessNumber": null,
"customerMobilePhone": null
}
Request Headers
{
"authorization": "Basic bGl2Z**",
"user-agent": "GuzzleHttp/6.5.5 curl/7.29.0 PHP/7.3.20",
"content-type": "application/json; charset=utf-8"
}
