There are 2 methods for creating a payment via Dolibarr:
- By sending the payment URL to the buyer.
- By creating a client invoice.
Sending a payment URL to the buyer
The URL to send 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.
- amount=9.99 corresponds to the payment code.
Creating a client invoice
- Sign in to the Dolibarr Back Office.
- Go to Billing | Payment and click New invoice.
- Fill out the fields and click Create Draft.
- Fill in the fields in the area Add a new line and click the Add button.
- Fill in the other fields if needed and click Validate.
- Click Yes to validate the invoice.
- The invoice number will be generated, i.e.: FA2105-0004.
- The URL to send 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.