1.2.0 • Published 2 years ago

smilecoin-sdk-react v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
2 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

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.21

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago