smilecoin-sdk-angular
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Smile Coin SDK For Angular

Smile Coin Documentation

1. Download SDK

npm i smilecoin-sdk-angular

2. Import package

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

@NgModule({
  declarations: [],
  imports: [
    SmileSendButton,
    SmileReceiveButton,
  ],
})

3. Initialize component:

return (
    <smile-receive-button
        [amount]="1"  //(Number: units of smile)
        [platform]="'Test Partner'" //(String: platform name)
        [platform_address]="'WTMLHPZE2N7RMADKK33HVQJI366I4FHLSRBPBMA46RHXUER2LPE6HR7JEA'" //(String: platform's receive wallet)
        [uuid]="'uuid-1'" //(String: platform's user identifier in their own records)
        [platform_parameters]="myObject" ////(Object: will take any sensitive custom parameters you would like to encrypt and track, this will append to the provided note)
        [note]="'test-angular-sdk'" //(String: note describing the transaction)
        [callback]="myReceiveCallback" //(Function: Returns signed_txn to pass to partner BE)
        [env]="'development'"  //(String: "development" | "production")
    >
)
return (
    <smile-send-button
        [callback]="myCallback" //Function: (The SmileSend button should call your payout endpoint)
    >
    </smile-send-button>
)

Readme

Keywords

none

Package Sidebar

Install

npm i smilecoin-sdk-angular

Weekly Downloads

7

Version

1.0.0

License

none

Unpacked Size

709 kB

Total Files

16

Last publish

Collaborators

  • seannelson