[결제위젯 V2] 1차 서버 호출(주문 생성)의 필수 여부에 대해 질문합니다.

. 젯 V2 .

[] https://docs.tosspayments.com/guides/v2/payment-widget/integration

"전 1" -> "" -> "전 2".
- 1: amount ()
- 2: 1한 amount와 2은 amount

[] "왜 1?" .

은 2.

, 1() , 후 2(: productId 는 cartId, amount, paymentKey, orderId).

[는 1]

1. (1)
2. ''고 paymentKey .
3. '인 API' (2)에 productId, amount, paymentKey, orderId.
4. .
- productId버 DB''.
- /''.
- ''낸 amount.
- '', . (.)

[]

, 1/2가 API, 는 1, 2두 amount.

면 1서 amount, 2서 productId .

도 1께 pending 의 order다 2, , .

, , /, 은 UX() .
. 는 UI.
연동하기 | 토스페이먼츠 개발자센터
Was this page helpful?