Download the PHP package forumpay/magento-2-payment-gateway-plugin without Composer

On this page you can find all versions of the php package forumpay/magento-2-payment-gateway-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento-2-payment-gateway-plugin

ForumPay Crypto Payments for Magento 2

Installation guide

Requirements

Make sure you have actual version of Magento installed (2.4 and higher).

Install using the composer

Installation using composer

Now you need to use Magento CLI to enable extracted module:

  1. Open command line and navigate to the root of magento installation For example: /var/www/html/magento/
  2. Run following commands to activate the module:

Upgrade from previous version

If previous version has been installed manually by unzipping .zip archive, then we need to remove all files from the file system before we install new version using the composer. Locate the module directory, usually in to the /app/code directory relative to your magento root. It should look like this: /app/code/Limitlex/ForumPay. Remove entire Limitlex folder with all sub-folders and files.

Follow Installation using composer section.

When plugin is installed and activate, you need set new webhook url following How to set up webhook.

Configuration

Open magento admin panel and go to: STORES -> Configuration -> Sales -> Payment Methods

Scroll down until you find ForumPay dropdown. Open it.

Enable module by setting Enabled to 'Yes'.

What each field does:

  1. Title The label of the payment method that is displayed when user is prompted to choose one. You can leave default or set it to something like Pay with crypto.
  2. Environment Dropdown lets you switch between 'Production' and 'Sandbox' modes. Use 'Production' for processing real transactions in a live environment and 'Sandbox' for safe testing without financial implications.
  3. API User / Merchant Id This is our identifier that we need to access the payment system. It can be found in your Profile. Go to profile >
  4. API Secret Important: never share it to anyone! Think of it as a password. API Secret consists of two parts. When generated in ForumPay dashboard, the first one will be displayed in your profile, while the second part will be sent to your e-mail. You need to enter both parts here (one after the other).
  5. POS Id This is how payments coming to your wallets are going to be identified. Special characters are not allowed. Allowed characters are: [A-Za-z0-9._-] (e.g. my-shop, my_shop).
  6. Accept Instant (Zero) Confirmations Allows immediate transaction approval without waiting for network confirmations, enhancing speed but with increased risk.
  7. New order status Which status the order gets when user starts the payment.
  8. Order Status After Payment Captured Which status the order gets once user successfully completes the payment.
  9. Instructions Instructions that are going to be displayed for user during the process of placing order.
  10. Sort order Where the payment method must be placed inside the list of payment methods. 0 = First position, 1 = Second, 2 = Third ...
  11. Payment Icon Icon that is going to be displayed when we ask user to select payment method.
  12. Custom environment URL Optional: URL to the API server. This value will override the default setting. Only used for debugging.

Don't forget to hit save button after fields are filled. Magento may also ask you to refresh cache. So if you see something like: 'One or more of the Cache Types are invalidated', just follow instructions.

Webhook setup

Webhook allows us to check order status independently of user actions.

For example, if user closes tab after payment is started, we cannot determine what the status of order is.

Is it Cancelled or is it Confirmed? In our case it will be Pending Payment forever.

This is where webhook comes in.

If webhook is set up in your Profile, it holds the url where it calls back on transaction status change.

Now, when user transfers his money and closes the tab before transaction is confirmed (~2 min), we loose state as before.

But now after payment is confirmed, webhook tells our webshop to check order status. And we get proper state of order.

How to set up webhook

Go to your Profile and scroll down until you find Webhook URL.

Insert URL in this field: YOUR_WEBSHOP/rest/V1/forumpay/webhook

Where YOUR_WEBSHOP is the URL of your webshop. An example of the complete webhook URL would be: https://my.webshop.com/rest/V1/forumpay/webhook

Functionality

Now ForumPay payment method must be available during order checkout.

User has to select ForumPay and then choose the cryptocurrency.

When currency is selected, block with transaction data will be displayed. (Amount, Rate, Fee, Total, Expected time).

After currency selection user also has to fill default fields like First/Last Name, County-City-Address-Code and his Phone Number. (These fields are customizable in Magento and aren't related to the plugin).

When user clicks on Place order button he is being redirected to the payment view, at this moment transaction is being created and it waits for money transfer.

Then user has 5 minutes to pay the order by scanning the QR Code or manually using address shown under the QR Code.

Logging

Logs live in /var/log relative to your magento installation root directory.


All versions of magento-2-payment-gateway-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
magento/framework Version ^103.0
magento/module-checkout Version ^100.4
forumpay/payment-gateway-php-client Version 1.6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package forumpay/magento-2-payment-gateway-plugin contains the following files

Loading the files please wait ...