Merchants SDK and API
StreamPay SDK and API
To integrate StreamPay™ app into your payments flow and set up the QR code-based StreamPOS™ - Point of Sale system and Cashier Machine, follow these steps:
Step 1:
Obtain Native SOL Address Before you can start receiving payments, you'll need to obtain a native SOL address. This can be done using any Solana wallet. If you don't have a wallet, you can create one easily by using platforms like Phantom wallet, TrustWallet, etc. These platforms provide native SOL addresses for deposits.
Step 2:
Create Token Account (Optional) If you want to receive payments in USDC, EURC, SOL, Stream Token (STRM), or any other SPL token on Solana, you'll need to create a token account associated with your native SOL address. Some platforms like Binance, TrustWallet or Phantom wallet may automatically create a token account for you when you deposit tokens.
Step 3:
Install StreamPOS™ SDK Packages To integrate StreamPayments™ or StreamPay™ application into your payment flow, you'll need to install the required packages. These packages may include SDKs and libraries provided by Stream Protocol or the Solana blockchain.
Step 4:
Import Packages in Your Code Once the packages are installed, import them into your codebase to access the functionalities offered by StreamPay™.
Step 5:
Generate Payment Request Link In your code, you can generate a payment request link that contains payment information such as the amount to be paid, the recipient's SOL address or token account address, and any additional details required for the transaction.
Step 6:
Encode Payment Request Link into QR Code After generating the payment request link, you can encode it into a QR code. The QR code will represent the payment request, and customers can scan it using their mobile wallets to initiate the payment.
Step 7:
Customer Makes Payment Once the QR code is displayed at the StreamPOS™ - Point of Sale, the customer can scan the QR code using their Solana-compatible mobile wallet. The wallet will read the payment request and prompt the customer to authorize the transaction.
Step 8:
Transaction Validation The transaction is then processed on the Solana blockchain, and once confirmed, the payment is received in your native SOL address or token account. The StreamPay platform ensures the transaction's security, transparency, and real-time validation.
Step 9:
Payment Confirmation Upon successful payment, both the merchant and customer receive confirmation of the transaction. The merchant can view the payment details and monitor the status of the transaction on their StreamPayments™ dashboard or through their integrated systems.
By following these steps, a merchant can seamlessly integrate StreamPay™ wallet app and StreamPayments™ into their StreamPOS™ - Point of Sale system and start accepting payments via Stream and StreamPayments™ platform or SolanaPay™ app. The use of QR code-based payments and the integration with the Stream Protocol / StreamPayments™ ecosystem offer a fast, secure, and frictionless payment experience for both merchants and customers.
Last updated