윤종우
윤종우
payment 객체 한글 처리 방법
안녕하세요. toss payment를 사용하여 결제를 개발하고 있습니다. 결제 승인을 위해서 https://api.tosspayments.com/v1/payments/confirm API를 이용하였는데 return 되는 payment 객체에 한글 값들이 모두 깨져서 보입니다. 한글이 정상적으로 나오게 하기 위해 API에서 설정해야 하는게 있나요? 아니면 Java에서 decoding 하여 처리할 수 있나요? 리턴 받은 payment 객체 예시입니다. {"mId":"tvivarepublica","lastTransactionKey":"9FCF51AD41F368DEB6A5D7FFF61AB43A","paymentKey":"tviva20241206161758tm542","orderId":"KOCEA22024120038483125","orderName":"증명 발급 결제","taxExemptionAmount":0,"status":"DONE","requestedAt":"2024-12-06T16:17:58+09:00","approvedAt":"2024-12-06T16:18:27+09:00","useEscrow":false,"cultureExpense":false,"card":{"issuerCode":"11","acquirerCode":"11","number":"42658688**625*","installmentPlanMonths":0,"isInterestFree":false,"interestPayer":null,"approveNo":"00000000","useCardPoint":false,"cardType":"신용","ownerType":"법인","acquireStatus":"READY","amount":1500},"virtualAccount":null,"transfer":null,"mobilePhone":null,"giftCertificate":null,"cashReceipt":null,"cashReceipts":null,"discount":null,"cancels":null,"secret":"ps_ex6BJGQOVDELLwOR42a5rW4w2zNb","type":"NORMAL","easyPay":{"provider":"삼성페이","amount":0,"discountAmount":0},"country":"KR","failure":null,"isPartialCancelable":true,"receipt":{"url":"https://dashboard.tosspayments.com/receipt/redirection?transactionId=tviva20241206161758tm542&ref=PX"},"checkout":{"url":"https://api.tosspayments.com/v1/payments/tviva20241206161758tm542/checkout"},"currency":"KRW","totalAmount":1500,"balanceAmount":1500,"suppliedAmount":1364,"vat":136,"taxFreeAmount":0,"method":"간편결제","version":"2022-11-16","metadata":null}
22 replies