카드 자동 결제 승인 응답에 다음과 같이 json으로 표기되어 있습니다. 그러면 결제 승인 후에 transactionKey를 받을 수 있는 방법은 없는 것일까요??
{
"mId": "tosspayments",
"lastTransactionKey": "798780972A6B30495E2DAB97839D1199",
"paymentKey": "y05n91dEvLex6BJGQOVDpgDQ0gDv0QVW4w2zNbgaYRMPoqmD",
"orderId": "a4CWyWY5m89PNh7xJwhk1",
"orderName": "토스 티셔츠 외 2건",
"taxExemptionAmount": 0,
"status": "DONE",
"requestedAt": "2024-02-13T14:54:34+09:00",
"approvedAt": "2024-02-13T14:54:57+09:00",
"useEscrow": false,
"cultureExpense": false,
"card": {
"company": "롯데",
"issuerCode": "71",
"acquirerCode": "71",
"number": "51379200****061*",
"installmentPlanMonths": 0,
"isInterestFree": false,
"interestPayer": null,
"approveNo": "00000000",
"useCardPoint": false,
"cardType": "신용",
"ownerType": "개인",
"acquireStatus": "READY",
"receiptUrl": "https://dashboard.tosspayments.com/receipt/redirection?transactionId=tviva20240213145434Rycs6&ref=PX",
"provider": "토스결제",
"amount": 4900
},
"virtualAccount": null,
"transfer": null,
"mobilePhone": null,
"giftCertificate": null,
"cashReceipt": null,
"cashReceipts": null,
"discount": null,
"cancels": null,
"secret": null,
"type": "BILLING",
"easyPay": null,
"easyPayAmount": 0,
"easyPayDiscountAmount": 0,
"country": "KR",
"failure": null,
"isPartialCancelable": true,
"receipt": {
"url": "https://dashboard.tosspayments.com/receipt/redirection?transactionId=tviva20240213145434Rycs6&ref=PX"
},
"checkout": {
"url": "https://api.tosspayments.com/v1/payments/y05n91dEvLex6BJGQOVDpgDQ0gDv0QVW4w2zNbgaYRMPoqmD/checkout"
},
"transactionKey": "798780972A6B30495E2DAB97839D1199",
"currency": "KRW",
"totalAmount": 4900,
"balanceAmount": 4900,
"suppliedAmount": 4455,
"vat": 455,
"taxFreeAmount": 0,
"method": "카드",
"version": "2022-11-16"
}
{
"mId": "tosspayments",
"lastTransactionKey": "798780972A6B30495E2DAB97839D1199",
"paymentKey": "y05n91dEvLex6BJGQOVDpgDQ0gDv0QVW4w2zNbgaYRMPoqmD",
"orderId": "a4CWyWY5m89PNh7xJwhk1",
"orderName": "토스 티셔츠 외 2건",
"taxExemptionAmount": 0,
"status": "DONE",
"requestedAt": "2024-02-13T14:54:34+09:00",
"approvedAt": "2024-02-13T14:54:57+09:00",
"useEscrow": false,
"cultureExpense": false,
"card": {
"company": "롯데",
"issuerCode": "71",
"acquirerCode": "71",
"number": "51379200****061*",
"installmentPlanMonths": 0,
"isInterestFree": false,
"interestPayer": null,
"approveNo": "00000000",
"useCardPoint": false,
"cardType": "신용",
"ownerType": "개인",
"acquireStatus": "READY",
"receiptUrl": "https://dashboard.tosspayments.com/receipt/redirection?transactionId=tviva20240213145434Rycs6&ref=PX",
"provider": "토스결제",
"amount": 4900
},
"virtualAccount": null,
"transfer": null,
"mobilePhone": null,
"giftCertificate": null,
"cashReceipt": null,
"cashReceipts": null,
"discount": null,
"cancels": null,
"secret": null,
"type": "BILLING",
"easyPay": null,
"easyPayAmount": 0,
"easyPayDiscountAmount": 0,
"country": "KR",
"failure": null,
"isPartialCancelable": true,
"receipt": {
"url": "https://dashboard.tosspayments.com/receipt/redirection?transactionId=tviva20240213145434Rycs6&ref=PX"
},
"checkout": {
"url": "https://api.tosspayments.com/v1/payments/y05n91dEvLex6BJGQOVDpgDQ0gDv0QVW4w2zNbgaYRMPoqmD/checkout"
},
"transactionKey": "798780972A6B30495E2DAB97839D1199",
"currency": "KRW",
"totalAmount": 4900,
"balanceAmount": 4900,
"suppliedAmount": 4455,
"vat": 455,
"taxFreeAmount": 0,
"method": "카드",
"version": "2022-11-16"
}
위에 첨부한 사이트에서 복사해온 내용입니다