How to make a payment via Dolibarr?
There are two ways of creating a payment via Dolibarr:
- By sending a payment URL to the buyer.
- By creating a client invoice.
Send a payment URL to the buyer
The URL to be sent to the buyer is:
http:// your-domain.com /htdocs/public/payment/newpayment.php? amount=9.99 & tag=your_tag
- Replace your-domain.com with the domain name of your website.
- amount=9.99 corresponds to the payment amount.
- tag=your_tag corresponds to the payment code.
Create a client invoice
- Sign into the Dolibarr Back Office.
- Go to Billing | Payment and click New invoice.
- Fill out the fields and click Create Draft.
- Fill out the fields in the Add new line section and click Add.
- Fill out other fields, if needed, then click Validate.
- Click Yes to validate the invoice.
- The invoice number will be generated in the following format: FA2105-0004.
- The URL to be sent to the buyer is:
http:// your-domain.com /htdocs/public/payment/newpayment.php?source=invoice&ref= FA2105-0004
- Replace your-domain.com with the domain name of your website.
- Replace FA2105-0004 by the previously generated invoice number.