hwibaski
hwibaski2y ago

부분 취소 403 에러

안녕하세요 테스트 환경 부분 취소 중 에러가 발생해서 문의드립니다. 전체 취소 및 결제는 잘 동작하고 있는 것으로보아 방화벽이나 기타 인프라 문제는 아닌 것으로 확인됩니다. 취소 가능한 금액보다 더 큰 금액을 요청하면 403에러가 나는 것으로 알고 있습니다. 이 부분을 인지하고 취소 가능한 금액을 테스트했는데 취소가 되지 않습니다. 코드에 문제가 있나 해서 서버에서 toss로 API 요청하지 않고 토스에서 제공하는 API 테스트 페이지를 통해서 결제 취소를 테스트 해도 동일하게 취소되지 않습니다. 확인부탁드리겠습니다 orderId: 2023321lfhw5ntv paymentKey : k2WNa0EMg4Gv6LjeKD8abDWAKW29Yk3wYxAdXy19qpobJmB7
7 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
hwibaski
hwibaskiOP2y ago
- 추가 사항 총 결제금액 21,900원 취소 요청 보낼 시 403 , NOT_CANCELABLE_AMOUNT code가 뜰 때도 있고 아래의 에러메세지가 발생할 때도 있습니다.
com.tosspayments.pg.approval.db.legacy.pg.support.Cancel_card_hException: org.springframework.jdbc.BadSqlGrammarException: \n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: ORA-00904: \"LASTPCANCEL\": invalid identifier\n\n### The error may exist in com/tosspayments/pg/approval/db/legacy/pg/mapper/PCancelMapper.xml\n### The error may involve com.tosspayments.pg.approval.db.legacy.pg.mapper.PCancelMapper.insertCancelCardH-Inline\n### The error occurred while setting parameters\n### SQL: INSERT /* TP200509 com.tosspayments.pg.approval.db.legacy.pg.mapper.PCancelMapper_insertCancelCardH by UPG 이선경 2017.07.07*/ INTO CANCEL_CARD_H( TRANSACTIONID , SUBTRANSACTIONID , SEQNO , SEQNO_SUB , MERCHANTID , REVAMOUNT , CAPTUREREVREQDATE , CANCELREASON , REGISTERDT , MODIFIEDDT , SUB_MERCHANTID , DIVIDEYN , CANCELSEQNO , POINTAMOUNT , DC_CAPTURE_REV_AMOUNT , TAXFREEAMOUNT , LASTPCANCEL ) VALUES ( SUBSTRB(?,1,24) , SUBSTRB(?,1,3) , ? , ? , SUBSTRB(?,1,15) , ? , SUBSTRB(?,1,14) , SUBSTRB(?, 1, 150) , SUBSTRB(?,1,14) , SUBSTRB(?,1,14) , SUBSTRB(?,1,15) , SUBSTRB(?,1,1) , SUBSTRB(?,1,3) , ? , ? , ? , ? )\n### Cause: java.sql.SQLSyntaxErrorException: ORA-00904: \"LASTPCANCEL\": invalid identifier\n\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00904: \"LASTPCANCEL\": invalid identifier\n"
com.tosspayments.pg.approval.db.legacy.pg.support.Cancel_card_hException: org.springframework.jdbc.BadSqlGrammarException: \n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: ORA-00904: \"LASTPCANCEL\": invalid identifier\n\n### The error may exist in com/tosspayments/pg/approval/db/legacy/pg/mapper/PCancelMapper.xml\n### The error may involve com.tosspayments.pg.approval.db.legacy.pg.mapper.PCancelMapper.insertCancelCardH-Inline\n### The error occurred while setting parameters\n### SQL: INSERT /* TP200509 com.tosspayments.pg.approval.db.legacy.pg.mapper.PCancelMapper_insertCancelCardH by UPG 이선경 2017.07.07*/ INTO CANCEL_CARD_H( TRANSACTIONID , SUBTRANSACTIONID , SEQNO , SEQNO_SUB , MERCHANTID , REVAMOUNT , CAPTUREREVREQDATE , CANCELREASON , REGISTERDT , MODIFIEDDT , SUB_MERCHANTID , DIVIDEYN , CANCELSEQNO , POINTAMOUNT , DC_CAPTURE_REV_AMOUNT , TAXFREEAMOUNT , LASTPCANCEL ) VALUES ( SUBSTRB(?,1,24) , SUBSTRB(?,1,3) , ? , ? , SUBSTRB(?,1,15) , ? , SUBSTRB(?,1,14) , SUBSTRB(?, 1, 150) , SUBSTRB(?,1,14) , SUBSTRB(?,1,14) , SUBSTRB(?,1,15) , SUBSTRB(?,1,1) , SUBSTRB(?,1,3) , ? , ? , ? , ? )\n### Cause: java.sql.SQLSyntaxErrorException: ORA-00904: \"LASTPCANCEL\": invalid identifier\n\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00904: \"LASTPCANCEL\": invalid identifier\n"
김차장
김차장2y ago
테스트 환경 정비가 좀 있었습니다. 다시 해보시면 되실거에요
hwibaski
hwibaskiOP2y ago
우선 답변 감사합니다. 빠른 확인이 필요해서 토스페이먼츠에 전화문의 드렸습니다. 그리고 답변 받았는데요. 아직 해결이 안되었고 DB 쪽에 정비 및 테스트가 아직 종료되지 않은 것 같 고, 확인이 끝나면 연락주신다는 답변 받았습니다. 감사합니다
김차장
김차장2y ago
앗 그렇군요, 15분쯤 전에 작업되었다고 연락받았습니다. 제가 너무 빨리 말씀드렸네요 🙏
hwibaski
hwibaskiOP2y ago
넵! 감사합니다~!
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.

Did you find this page helpful?