Constructors
constructor
- new default(options: { baseURL?: string; key: string; secret: string }): default
-
Parameters
-
options: { baseURL?: string; key: string; secret: string }
-
Optional
baseURL?: string
-
key: string
-
secret: string
Properties
Private
baseURL
baseURL: string
Private
secret
secret: string
Methods
load
- load<T>(url: string, method?: Method, params?: any, options?: AxiosRequestConfig<any>): Promise<T>
-
Parameters
-
url: string
-
method: Method = "GET"
-
params: any = {}
-
options: AxiosRequestConfig<any> = {}
Returns Promise<T>
Calls api from the razorpay for given service
Example
"/fund_accounts/validations", "POST", {id: "account_id"}