가상계좌 발급 API 문의드립니다.
플러터로 가상계좌 발급 API를 실행하려 합니다.
Response virtualAccountsResponse =
await dio2.post(
'https://api.tosspayments.com/v1/virtual-accounts',
data: {
"amount": 15000,
"orderId": "5f6adce29b8018585613c36f08457be45f1690e44bba07e01cd972f5abb881ad",
"orderName": "테스트 물품",
"customerName": "테스트",
"bank": "31",
},
options: options,
);
해당 코드로 api 호출을 했는데, 잘못된 값이 포함되어 있다는 에러 메시지가 뜹니다.
여러번 테스트를 진행해보니 orderId쪽에 문제가 있는거 같은데,
final paymentResult =
await _paymentWidget.requestPayment(
paymentInfo: PaymentInfo(
orderId: digest1.toString(),
orderName: productData["name"]
.toString()
.replaceAll("'", ""),
));
를 통해서 반환된 paymentResult.success!.orderId를 orderId로 사용하는데도 오류가 뜹니다.
혹시 orderId를 api마다 다르게 설정해야 하는지 문의드립니다.
Response virtualAccountsResponse =
await dio2.post(
'https://api.tosspayments.com/v1/virtual-accounts',
data: {
"amount": 15000,
"orderId": "5f6adce29b8018585613c36f08457be45f1690e44bba07e01cd972f5abb881ad",
"orderName": "테스트 물품",
"customerName": "테스트",
"bank": "31",
},
options: options,
);
해당 코드로 api 호출을 했는데, 잘못된 값이 포함되어 있다는 에러 메시지가 뜹니다.
여러번 테스트를 진행해보니 orderId쪽에 문제가 있는거 같은데,
final paymentResult =
await _paymentWidget.requestPayment(
paymentInfo: PaymentInfo(
orderId: digest1.toString(),
orderName: productData["name"]
.toString()
.replaceAll("'", ""),
));
를 통해서 반환된 paymentResult.success!.orderId를 orderId로 사용하는데도 오류가 뜹니다.
혹시 orderId를 api마다 다르게 설정해야 하는지 문의드립니다.
