This page provides consolidated access to all UPI Intent, UPI QR, and Payment API code samples used for integrating with the Zwitch Payments Platform.
All code snippets are stored securely on AWS S3 and are made available to developers through downloadable links.
The following code snippets are available for direct download:
GoLang
NodeJS
Python
Ruby
PHP
Usage Instructions
Regardless of language, all snippets follow the same steps:
- Configure Access Key and Secret
ACCESS_KEY= Replace with the PG API access key
AUTH_TOKEN= Replace with access_key:secret_key
- Install Dependencies if required
- Run the Sample
- Node: node main.js
- Golang: go run main.go
- Python: python3 main.py
- Ruby: ruby main.rb