chernandez/magento2-mipago

MiPago. Magento 2 module - code challenge

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:magento2-module

dev-main 2023-10-20 15:30 UTC

This package is auto-updated.

Last update: 2024-04-20 16:29:24 UTC


README

César Hernández

Chernandez_MiPago

This is a Magento 2.4.5 module that creates a custom Payment method.
Code challenge for The Etailers.

Author

Prerequisites

Before testing this module, make sure that you meet the requirements.

A Magento 2.4.* working
Composer

INSTALLATION

Composer Installation

  • Go to your Magento root folder
  • Run composer command:
composer require chernandez/magento2-mipago:dev-main

Manual Installation

  • Extract files from ChernandezMiPago.zip archive
  • Go to your Magento root folder
  • Move files into Magento2 folder app/code/.

ENABLE EXTENSION

  • Make sure you have correct read/write permissions on your Magento root directory. Read about them here.
  • Go to Magento root folder

Enable Extension Using Magento CLI

Execute the following commands to manually install Chernandez_MiPago

bin/magento module:status

You must see Chernandez_MiPago in the list of disabled modules.

  • Enable module

    bin/magento module:enable Chernandez_MiPago
  • Launch the upgrade and regenerate the code dependencies:

    bin/magento setup:upgrade &&
    bin/magento setup:di:compile
  • If you have your Magento running on Production mode you must regenerate your static content:

      bin/magento setup:static-content:deploy
  • Clean the cache

    bin/magento cache:clean

Configurations

Inside Magento backend go to:

Stores > Configuration > Sales > Payments Methods

This will show you all the payment methods.
Inside Other Payment Methods you will see MiPago.
All options are self explanatory.

  • Enable MiPago to test all its functionalities.
  • Enable Extra charge to allow an extra fee to the customers that select this payment

TODO

  1. Fix workaround saving quote attribute extracharge.
  2. Add extracharge to invoice and credit memo entities.
  3. Add taxes management to extracharge attribute.
  4. Add PHPUnit testing.