addons/payment_toss_payments/README.md
SDK: Toss Payments JavaScript SDK (Version 2)
APIs (Version 2024-06-01):
This module relies on the Toss Payments JavaScript SDK, loaded from
https://js.tosspayments.com/v2/standard, to open the Toss-hosted payment window and collect the
payment details in a secure way.
For the front-end, the PaymentForm component is patched to:
On the backend, after the customer completes the payment on Toss Payments and is redirected back to
Odoo on the success URL, a server-to-server API call is made to the
/v1/payments/confirm endpoint to confirm the payment. The response is then processed to update the
transaction state and store the paymentKey and secret fields returned by Toss Payments.
Webhook notifications are used to keep the transaction state in sync with Toss Payments:
PAYMENT_STATUS_CHANGED events.orderId).secret in the event with the one
stored on the transaction when the payment was confirmed.KRWChecklist
Procedure