Kuikpay
Install
npm install --save kuikpay
Usage
Props
OrderForm
Type
Property | Type | Description |
---|---|---|
clientProfileData |
ClientProfileData |
Client information |
items |
Item[] |
Items added to cart |
totalizers |
Totalizer[] |
Totals |
value |
number |
Amount to be paid |
ClientProfileData
Type
Property | Type | Description |
---|---|---|
email |
string |
Client email |
Item
Type
Property | Type | Description |
---|---|---|
id |
number |
SKU ID |
quantity |
number |
Quantity to add |
seller |
string |
Seller ID |
Totalizer
Type
Property | Type | Description |
---|---|---|
id |
string |
Totalizer ID. Options Items , Shipping , Tax
|
name |
string |
Totalizer name |
value |
number |
Value |
import React, { Component } from 'react'
import { Kuikpay } from 'kuikpay'
import 'kuikpay/dist/index.css'
class Example extends Component {
render() {
return <Kuikpay {...props} />
}
}
Development
Execute
npm install
npm run start
Execute in another terminal
cd example
npm i
npm run start
Then in the browse, replace localhost for http://vtexlatam.vtexlocal.com.br/