Skip to content

u4bi-dev/payple-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payple-react

NPM

NPM Badge

Install

npm install --save payple-react

Usage

import React from 'react'

import Payple from 'payple-react'

const data = {
    PCD_CST_ID: 'test',
    PCD_CUST_KEY: 'abcd1234567890',
    PCD_AUTH_URL: 'https://testcpay.payple.kr/php/auth.php',
    PCD_CPAY_VER: '1.0.1',
    PCD_PAY_TYPE: 'transfer',
    PCD_PAY_WORK: 'PAY',
    PCD_PAY_GOODS: '하얀눈',
    PCD_PAY_TOTAL: 11000,
    PCD_PAYER_NO: `payple_${ new Date().getMilliseconds() }`,
    PCD_PAY_ISTAX: 'N',
    PCD_PAYER_EMAIL: 'example@example.com',
    PCD_PAYER_NAME: '김테스트',
    PCD_PAYER_HP: '01012345678'
}
/* https://github.com/PAYPLECORP/manual
*/

(<Payple data={ data } onCallback= { (e) => console.log(e) }>
    <button>
        test
    </button>
</Payple>)

Demo