Golang bindings for interacting with the Razorpay API
This is primarily meant for merchants who wish to perform interactions with the Razorpay API programatically
Read up here for getting started and understanding the payment flow with Razorpay: https://razorpay.com/docs/get-started/
Documentation of Razorpay's API and their usage is available at https://docs.razorpay.com
You need to setup your key and secret using the following: You can find your API keys at https://dashboard.razorpay.com/#/app/keys.
import (
razorpay "github.com/razorpay/razorpay-go"
)
client := razorpay.NewClient("<YOUR_API_KEY>", "<YOUR_API_SECRET>")
Note: All methods below return a map[string]interface{}
and error
. All methods accept an extraHeaders
param of type map[string]string
, allowing you to optinally set extra HTTP headers on the request.
- Account
- Customer
- Token
- Order
- Payments
- Product Configuration
- Settlements
- Stakeholder
- Fund
- Refunds
- Invoice
- Item
- Plan
- PaymentVerfication
- Subscriptions
- Add-on
- Payment Links
- Smart Collect
- Route
- QR Code
- Emandate
- Cards
- Paper NACH
- UPI
- Register Emandate and Charge First Payment Together
- Register NACH and Charge First Payment Together
- Token
- Webhook
- Document
- Dispute
- Iin
The Razorpay Go SDK is released under the MIT License. See LICENSE file for more details.