Configuring the payment method
- To receive the service ID, log in to Payment.Center, and open the Services tab.
-
Open the service edit form and enter the Notification URL: "https://domain.com/mancgi/pcresult/";
Details - Copy the Secret key. You will need it in BILLmanager.
- Click on Save.
Configuring BILLmanager
Navigate to Provider → Payment method and complete the following fields:
- Select the payment method "Payment.Center".
- Enter the integration details.
- Enter the payment method parameters.
Integration
Select the existing account or register a new one. Selecting Add new will redirect you to the Payment.Center registration form. If you choose "Use existing", enter the following details:
- Service ID — enter the unique identifier with Payment.Center;
- Secret key — enter the secret key from the Payment.Center client area;
- Enable MAC — the option for additional encryption using the digital signature MAC. To enable MAC, please contact the support center of the payment gateway, and enable the option in BILLmanager;
- Recurring payments — select the checkbox to enable recurring payments;
Redirect after payment
This payment method allows redirecting a client to a required page after payment. You can specify pages for successful and unsuccessful payments. Navigate to Provider → Payment methods → Edit → Settings and enter the URL of the pages in Successful payment return page and Failed payment return page.
Additional information
Refund
To enable refunds, navigate to Provider → Payment methods → Edit → check the Allow refund box.
Logging
Payment.Center has the following log files:
- /usr/local/mgr5/var/pmpaymentcenter.log — configuration details of the payment method;
- /usr/local/mgr5/var/pcpayment.log — payment log;
- /usr/local/mgr5/var/pcresult.log — responses from the payment gateway;
- /usr/local/mgr5/var/pcrecurring.log — recurring payments log. The file is not present if recurring payments are not enabled.