SDKs
SDK overview
| SDK | Availability | Docs |
|---|---|---|
JavaScript checkout (@venpays/checkout) | Card payments on your site — CDN + npm | JavaScript checkout SDK |
Flutter (venpays_flutter) | Card payments in Flutter apps — pub.dev | Flutter checkout SDK |
| VenPaysApplePay (iOS) | Available to approved merchants | Apple Pay iOS |
The JavaScript and Flutter SDKs open the hosted card page — they are not card-field Elements libraries. PAN never enters your page or app. Benefit and Apple Pay web still use hosted checkout.
Browser script (pinned): https://cdn.venpays.com/v0.2.2/venpays-checkout.js
npm: npm install @venpays/checkout (0.2.2)
Flutter: venpays_flutter: ^0.1.2
When a shopper abandons checkout, both SDKs can mark the transaction cancelled via POST /v1/sdk/checkout/{track_id}/cancel (Flutter does this automatically on sheet close; JavaScript exposes checkout.cancel() / VenPays.cancel()). If the customer does not pay, VenPays also cancels the payment after 30 minutes.