Prerequisites
- A Blink merchant account (
merchantIdand ECDSA P-256 key pair). See Key Generation and Merchant Registration if you don’t have these yet. - Node.js >= 18 for the signer endpoint.
1. Install the SDK
2. Create a signer endpoint
Add a server route that signs payment requests. This minimal Express example covers the essentials:3. Trigger the checkout
Vanilla JavaScript
React
What’s next
You now have a working checkout flow. To go to production:Generate a production key pair
Key Generation — create ECDSA P-256 keys and store the private key in a secrets manager.
Register your merchant account
Merchant Registration — send your public key to Blink.
Harden your signer
Signer Endpoint — add request validation, authentication, rate limiting, and CORS.
Handle errors gracefully
Error Handling — use
CheckoutError codes and getDisplayMessage() in your UI.Run the production checklist
Production Checklist — verify every item before going live.