Models are crucial when it comes to creating new smart contracts. It determines the payment collection direction. In this article, we will cover these 2 aspects of models:
Creating new models
URL: https://dashboard.paydocker.com/models
1. Access this page by clicking Settings (1), then Models (2) in the left panel.
2. On the Models page, Click + Add Model.
3. In the popup, enter the preferred name (1) and select the Payment Model Details (2) from the drop-downs. Click Add (3) once done.
Here is an explanation of the drop-down menu.
Heading | Options | Explanation |
Category |
Hotel Collect | Hotel collects payments from guest first and pays demand after. |
Agency Collect | Demand collects payments from guest first and pays hotels after. | |
Wholesaler | Payment is for a wholesaler. | |
Service | Payment is for a service. | |
Earning |
Commission | Transaction amount includes commission. |
Fees | Transaction amount includes fees. | |
Net | Transaction amount is net. | |
Applicable |
Per Booking | Commission / Fees are applicable on per booking. |
First Night | Commission / Fees are applicable on first night of stay. | |
Type |
Percentage | The commission/fees are calculated as a percentage. |
Dynamic | The commission/fees have a dynamic calculation. |
Managing Models
Here are some ways that you can manage existing Models.
Edit Models
Once a model is added, it cannot be edited. If any changes are necessary, kindly create a new model.
Disable Models
If there is a model that you wish to retain but is currently inactive, you have the option to disable it.
1. Click on the model on the Models Page.
2. On the Model Details page, click the Toggle under the Status section to disable the model.
Deleting Models
To delete a model completely,
1. Click on the model on the Terms Setup Page.
2. On the Model Details page, select Delete to delete the model.
💡 Do note that models with existing connections cannot be deleted.