payple-react
![NPM](https://camo.githubusercontent.com/b37e84ae5022f35998c3edaaa7a055c6f4021a42042a08444d88114b4f92ad9f/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f706179706c652d72656163742e737667)
![NPM Badge](https://camo.githubusercontent.com/e6834954f39b6003f7ba402db30bac43b3c195a8a5bec43357740a16f7c186fa/68747470733a2f2f6e6f6465692e636f2f6e706d2f706179706c652d72656163742e706e673f646f776e6c6f6164733d74727565)
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
![](https://raw.githubusercontent.com/u4bi-dev/payple-react/master/_.png)