Paygol module for BoxBilling, version 1.2

 

Requirements

 

Installation

  • Download BoxBilling module.
  • Unzip paygol-for-boxbilling_1.2.zip file directly into your BoxBilling directory.
  • Install your Paygol module using your BoxBilling admin dashboard (Configuration -> Payment Gateways -> New payment gateway), look for “Paygol” and click on “Install“.
  • Once installed, setup the module (Configuration -> Payment Gateways), select “Paygol” and click on Edit Icon (Pencil Icon).
  • Log into your Paygol Dashboard and go to “Notifications” section, copy the Service ID and Secret Key from your account and paste them into the corresponding fields at the module’s setup page on your BoxBilling site.
  • Copy the “IPN Callback URL” from your Paygol’s module setup and paste it into the “IPN URL” field at the “Notifications” section of your Paygol dashboard, then save the changes.
  • Make sure the module is configured as follows:
    • “Enabled: Yes“.
    • “Allow one time payments: Yes“.
    • “Enable test mode: No
  • Click on “UPDATE” on your BoxBilling site to save the changes.

 

Testing

To test the newly installed module you can enable your service’s test mode clicking the button “Live/Test” at the upper-right corner of your screen in your Paygol’s dashboard website, Be sure to change it back before going live.

 

Paygol button image

To ensure all instances of the Paygol button will work correctly, please follow these instructions:

  • Edit “logos.css” from your BoxBilling installation. This file can be found at “bb-themes/huraga/assets/css/logos.css“.
  • Add the following lines to the end of the file “logos.css“ and save changes:
    .logo-PayGol{
         background: transparent url("../img/gateway_logos/PayGol.png") no-repeat scroll 0% 0%;
         background-size: contain;
         width:80px;
         height: 28px;
         border: 0;
         margin: 10px;
    }
    

Please note:

If you are not using the default theme “huraga“, you need to do the following:

  • Modify the CSS file in the right folder, not inside “huraga“. e.g. “bb-themes/theThemeImUsing/assets/css/logos.css“.
  • Copy the logo image from “bb-themes/huraga/assets/img/gateway_logos/Paygol.png” to a similar path for the other theme.                                            e.g: “bb-themes/theThemeImUsing/assets/img/gateway_logos/Paygol.png“.
  • There’s an alternative way to the previous steps, just rename the folder “huraga” and name it as your new theme folder. This change should be done before you copy the Paygol module to your BoxBilling directory.

 

Important Notes

  • While in test mode, an IPN request (payment notification) will be issued immediately to your platform after each test.
  • Once a payment is completed it will be shown as completed but with “Pending Setup” status, until you activate it at your BoxBilling panel.
  • Payments are usually notified immediately; however, certain payment methods may take longer to confirm the payment (e.g. methods that take a few minutes to notify the transaction, or voucher-based transactions that require the payer to print it in order to pay by cash at a given place). We strongly recommend that you inform your customers about this beforehand in order to avoid confusions.