TOSS1 [JS] toss 빌링키 연결 및 사용 api toss에 요청해서 연결해서 받는 키값은 있다는 전제하에 진행됩니다. 첫번째로 프론트에서 toss 를 연결해서 카드 입력 후 오는 authKey값을 받아서 카드 등록을 진행합니다. const superagent = require('superagent'); const billingKey = await superagent .post('https://api.tosspayments.com/v1/billing/authorizations/issue') .set( { Authorization: `Basic ${Buffer.from( `${토스키}:`, 'utf-8', ).toString('base64')}`, }, { 'Content-Type': 'application/json; charset=UTF-8', }, ).. 2023. 11. 6. 이전 1 다음