Smile Coin SDK For Angular
Smile Coin Documentation
npm i smilecoin-sdk-angular
import { SmileReceiveButton, SmileSendButton } from 'smilecoin-sdk-angular'
@NgModule({
declarations: [],
imports: [
SmileSendButton,
SmileReceiveButton,
],
})
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>
)