Skip to content

yujutown/tosspayments-sdk.js

Repository files navigation

npm Install size

소개

데모

지원

사용법

import {TossPaymentsApi} from '@yuju/tosspayments-sdk';

const tossPaymentsApi = new TossPaymentsApi("secret_key")
const result = await tossPaymentsApi.payment.confirm({
  paymentKey: "1234",
  amount: 1000,
  orderId: "1234",
});
if (result.success) {
  expect(result.data.balanceAmount).toBe(1000)
} else {
  throw new Error(result.error.message)
}

설치

  • NPM
$ npm install @yuju/tosspayments-sdk
  • Yarn
$ yarn add @yuju/tosspayments-sdk

About

No description, website, or topics provided.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
license.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published