Documentation ¶
Index ¶
Constants ¶
View Source
const SDKName = "razorpay-go"
SDKName ...Name of this SDK
View Source
const SDKVersion = "0.1"
SDKVersion ...
Variables ¶
View Source
var Request *requests.Request
Request ...
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Addon *resources.Addon Card *resources.Card Customer *resources.Customer Invoice *resources.Invoice Order *resources.Order Payment *resources.Payment Plan *resources.Plan Refund *resources.Refund Subscription *resources.Subscription Token *resources.Token Transfer *resources.Transfer VirtualAccount *resources.VirtualAccount }
Client provides various helper methods to make HTTP requests to Razorpay's APIs.
func NewClient ¶
NewClient creates and returns a new Razorpay client. key and secret are used to authenticate the requests made to Razorpay's APIs.
func (*Client) AddHeaders ¶
AddHeaders adds additional headers to Razorpay's client. All requests made using the client will contain these additional headers in the HTTP request.
func (*Client) SetTimeout ¶
SetTimeout sets the timeout of Razorpay's Client. The default timeout will be overridden for all HTTP requests made using this client.
Click to show internal directories.
Click to hide internal directories.