1.0.0 • Published 2 years ago

smilecoin-sdk-angular v1.0.0

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

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>
)
1.0.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago