StreamPayments components
Build your own checkout flow for your website or app, fully white labelled
Quick start guide
Create your payment and copy the code snippet/PaymentID
Embed the StreamPayments Components as required per your use case (see resources below)
Generate your API key in the Helio dashboard
Resources
Installation:
1. Embed a Pay Link or Pay Stream with the StreamPay button
Properties table for the StreamPay components
Property
Type
Required
Default value
Description
cluster
string
yes
available values; devnet, mainnet-beta, testnet
paymentRequestId
string
yes
Your paylink ID
onSuccess
function
no
triggered event when success
onError
function
no
triggered event when error
onPending
function
no
triggered event when pending
onStartPayment
function
no
triggered event on start payment
theme
object
no
customize the primary color(more will come soon) theme={{ colors: { primary: #f76c1b }}}
totalAmount
number
no
you can pass dynamic amount. dynamic pricing should be checked for this.
supportedCurrencies
string array
no
currencies you want to support.
2. Embed a Dynamic payment with the StreamPay button
Verify the payment using the StreamPayments API - generate here. You can call the endpoint per the following example:
3. Process Dynamic payments WITHOUT the StreamPay button
Please refer to the full repository for this option as well as various other developer options on our GitHub:
Last updated