My payment methods Opencart 3


$39,00
Перейти на сайт

 The module is designed to add your own payment methods to the online store on Opencart 3. It allows you to set the dependencies of the added payment methods on different order parameters. Each method of the ""My payment methods"" module can be assigned its own cost, its own dependencies, order status after completion, description, and logo, payment instructions.

You can also specify a link for each payment method to automatically redirect the client to the payment page. It is possible to integrate into the payment gateway, pass order parameters in the request and receive a response from the payment system and process it. You can also work using the API protocol of payment systems.

Dependence of payment methods:

  • from the amount of the order;
  • from the weight of the order;
  • from the number of goods in the basket;
  • from goods, their categories and manufacturers;
  • from client groups;
  • on delivery methods;
  • from geofence (regions), country or cities;
  • from coupons and certificates;
  • from the date and time, as well as the day of the week;
  • currency and shop.

My payment methods. Module installation:

  • Install localcopy if you don't already have it.
  • Download the module archive in the Installing Modules section.
  • Update modifier cache.
  • Update the cache of twig templates.
  • Go to Modules > Modules > select the ""Payment Methods"" module type > enable the ""My Payment Methods"" module
  • Edit the module, add your payment methods.
  • Meaning of some fields in the module:

    • ""Success URL"" - the link to which the buyer will be returned after placing (and paying) the order. You can also specify here a link to the payment page if the payment method does not provide for the transfer of any order data to the payment gateway.
    • ""Callback URL"" - a link to the handler script that will be called in the background after the order is completed at the last stage before going to the Success URL.
    • ""Redirect URL"" - a link for redirecting the client to the payment page, if it is necessary to transfer additional data about the order from the ""Transmitted data"" field.
    • ""Data (Data)"" - json array with parameters that need to be passed to the Redirect URL, such as order number, order amount, and other parameters according to the payment system documentation
    • ""Conditions for successful payment"" - if you want to change the status of the order after payment only after checking some parameters, specify the conditions for checking here. An example of such a condition is: first_var === false && second_var == ""success"". Note that you don't need to use the dollar sign ($) with the variable name as you would in PHP. The variables will be extracted from the payment gateway response data to the Success URL. You can also use any php function for left side parameter encapsulated with double underscore like __is_numeric__ price == true where is_numeric is function name and price is the variable name
    Change log:

    10/12/2020 - minor compatibility issue with ""My Shipping Methods"" module has been fixed
    11/18/2020 - the dependence on the methods of the ""My delivery methods"" module has been fixed
    11/19/2020 - improved compatibility with checkout modules
    11/21/2020 - fixed a bug with the mass selection of categories in dependencies