1.2.0 • Published 3 years ago

smilecoin-sdk-react v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Smile Coin SDK For React

Smile Coin Documentation

1. Download SDK

npm i smilecoin-sdk-react

2. Import package

import { SmileReceiveButton, SmileSendButton } from 'smilecoin-sdk-react'

3. Initialize component:

return (
    <SmileReceiveButton
        amount={100} //(Number: units of smile)
        platform="Test Partner" //(String: platform name)
        platform_address="X" //(String: platform's receive wallet)
        uuid="1" //(String: platform's user identifier in their own records)
        platform_parameters={ custom_parameter_1: "x"... } //(Object: will take any sensitive custom parameters you would like to encrypt and track, this will append to the provided note)
        note="testdk" //(String: note describing the transaction)
        callback={myCallback} //(Function: Returns signed_txn to pass to partner BE)
        env="development" //(String: "development" | "production")
    />
)
return (
    <SmileSendButton
        callback={yourCallback} //(Function: The SmileSend button should call your payout endpoint)
    />
)
1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.21

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago