Connect the Razor Pay payment gateway and initiate the payment to the mapped account. Based on the given parameters the payment gateway will be opened in the app. The user can continue the payment within the razor pay gateway. Once the payment is done the control will be navigated to the app or user specified page.
Smartcode
Syntax
GetPayment(variablename,type,connectorname,name,username,email,usercontactno,description,amount)
Parameters
- variablename(Required) – name of the variable to save the return status
- type(Required) – Type of the payment gateway
- connectorname(Required) – Name of the connector
- name(Required) – Name of the payment page
- username(Required) – name of the payee
- email(Required) – email of the payee
- usercontactno(Required) – Contact number of the payee
- description(Required) – Payment description
- amount(Required) – Amount to pay
Example
GetPayment(“success”,”razorpay”,”Connector1″,”SterloPayment”,”Sterlouser”,”[email protected]”,”9994303910″,”Tutition Fee”,”300″);
Directcode
var razer_options=await this.getPaymentdata(“razorpay”,”Connector1″,”SterloPayment”,”Sterlouser”,”[email protected]”,”9994303910″,”Tutition Fee”,”300″)
success=RazorpayCheckout.open(razer_options).then((data) => {
return data;
})
.catch((error) => {
return error;
});
Note : This method will be accessible only if the Razor Pay package is included in the app.