ინსტალაცია

Prerequisites

  • You must be using WooCommerce 3.0 or newer
  • You must enable pretty permalinks in Settings > Permalinks.

Installation Instructions

  1. Upload the plugin files to the /wp-content/plugins/plugandpay-woocommerce-tbc-credit-card-payment-gateway directory.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to WooCommerce -> Settings -> Payments -> TBC credit card (click Manage) and fill out required settings.
  4. Bank provides certificate in .p12 format, to transform it into .pem use this command: openssl pkcs12 -in *.p12 -out tbcpay.pem (You can also convert certificate using online tools but this is a security risk and is not recommended!).
  5. Upload generated .pem certificate to a secure directory on your server, usually this is not your root wordpress directory. Enter full path to certificate in plugin settings under certificate path.
  6. You should communicate Ok and Fail urls to Tbc e.g. example.com/wc-api/tbc/ok and example.com/wc-api/tbc/fail. Note that these slugs can be changed in plugin settings.
  7. You should communicate your server IP to TBC.
  8. Open outgoing port 18443 on the server.
  9. Setup cron job to run example.com/wc-api/close_business_day once every 24 hours, e.g. 0 1 * * * wget -O – https://example.com/wc-api/close_business_day >> /dev/null 2>&1.