Giter Club home page Giter Club logo

plugin-magento-2's Introduction

Latest Version on Packagist Software License Total Downloads

Paystack Magento 2 Module

Paystack payment gateway Magento2 extension

Install

  • Go to Magento2 root folder

  • Enter following command to install module:

composer require pstk/paystack-magento2-module
  • Wait while dependencies are updated.

  • Enter following commands to enable module:

php bin/magento module:enable Pstk_Paystack --clear-static-content
php bin/magento setup:upgrade
php bin/magento setup:di:compile

Configuration

To configure the plugin in Magento Admin , go to Stores > Configuration from the left hand menu, then click Payment Methods from the list of options. You will see Paystack as part of the available Payment Methods. Click on it to configure the payment gateway.

  • Enabled - Select Yes to enable Paystack Payment Gateway.
  • Title - allows you to determine what your customers will see this payment option as on the checkout page.
  • Integration Type - allows you to select the type of checkout experience you want on your website. Select Inline(Popup) if you want your customers to checkout while still on your website, and Redirect to be redirected to the payment gateway's checkout
  • Test Mode - Check to enable test mode. Test mode enables you to test payments before going live. If you ready to start receving real payment on your site, kindly uncheck this.
  • Test Secret Key - Enter your Test Secret Key here. Get your API keys from your Paystack account under Settings > Developer/API
  • Test Public Key - Enter your Test Public Key here. Get your API keys from your Paystack account under Settings > Developer/API
  • Live Secret Key - Enter your Live Secret Key here. Get your API keys from your Paystack account under Settings > Developer/API
  • Live Public Key - Enter your Live Public Key here. Get your API keys from your Paystack account under Settings > Developer/API
  • Click on Save Config for the changes you made to be effected.

Magento Settings

Known Errors

  • Fail to redirect to success page after successful payment

Sometimes after receiving payment for an order you get an error like: Class Yabacon\Paystack not found and magento doesn't redirect to the success page.

** Fix: Run the following command:

composer require yabacon/paystack-php
  • Enable and configure Paystack in Magento Admin under Stores/Configuration/Payment Methods

Running the magento2 on docker

Contained within this repo, is a dockerfile and a docker-compose file to quickly spin up a magento2 and mysql container with the paystack plugin installed.

Prerequisites

Quick Steps

  • Create a .env file off the .env.sample in the root directory. Replace the ******* with the right values
  • Run docker-compose up from the root directory to build and start the mysql and magento2 containers.
  • Visit localhost:8000 on your browser to access the magento store. For the admin backend, visit localhost:8000/<MAGENTO_BACKEND_FRONTNAME> where MAGENTO_BACKEND_FRONTNAME is the value you specified in your .env file
  • Run docker-compose down from the root directory to stop the containers.

Documentation

Support

For bug reports and feature requests directly related to this plugin, please use the issue tracker.

For general support or questions about your Paystack account, you can reach out by sending a message from our website.

Community

If you are a developer, please join our Developer Community on Slack.

Contributing to the Magento 2 plugin

If you have a patch or have stumbled upon an issue with the Magento 2 plugin, you can contribute this back to the code. Please read our contributor guidelines for more information how you can do this.

plugin-magento-2's People

Contributors

awoyotoyin avatar eyeke04 avatar eyitemi-paystack avatar ibrahimlawal avatar kielsoft avatar lukman-paystack avatar lukman008 avatar onyekvchi avatar steveamaza avatar tiku-paystack avatar tkalejaiye avatar tolu-paystack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plugin-magento-2's Issues

Plugin Installation Issue on Magento 2.3.0

I have completed the following steps:

Install
Go to Magento2 root folder

Enter following command to install module:

composer require pstk/paystack-magento2-module
Wait while dependencies are updated.

but when I got to this part

Enter following commands to enable module:

php bin/magento module:enable Pstk_Paystack --clear-static-content

after entering the code I got an error message that read: Could not open input file: bin/magento

please I need assistance

Autoload Error

Autoload error
Module 'Pstk_Paystack' from '/home/XXXXX/public_html/fashion/vendor/pstk/paystack-magento2-module' has been already defined in '/home/XXXXX/public_html/fashion/vendor/profibro/magento2-module-paystack'.

Please any suggestions as regards how this issue can be resolved? Thanks

Order Total Ommitted

The Paysatck M2 payment module is not taking Total Order Value.
Only Cart Total value is passed to Paystack. Shipping not included

Redirecting to success page

Hello, i'm sorry i had to comment on this issue. I still have a problem redirecting to success page while testing. After a payment, i see A transaction successful pop up and it disappears but the page page remains the same. It is not redirected to success page.

Magento ver. 2.26
Paystack: Magento2.1 plugin (installed using composer)
PHP Version: 7.1
Server: Linux on Google Compute engine

Originally posted by @abbeyseto in https://github.com/PaystackHQ/paystack-magento2/issue_comments#issuecomment-429990057

Payment Processing Begins Before Transaction is Completed

It seems for some reason, once the pay button is clicked, Magento acts like the payment is being processed or has been processed.

This manifests in a few ways.

  1. For sites which have receipts enabled, a confirmation receipt is sent soon as the checkout form is enabled.
  2. For sites which have some processing animation enabled which should be shown after the payment is made, the animation fires soon as the checkout form is enabled e.g https://q6supermarket.ng/default/checkout/cart/#payment

Payment option not displaying at checkout page

Paystack Payment option not displaying in checkout.

-Magento Version 2.2.10
-Php Version 7.1

  • Does not display in both default checkout and Amasty checkout page

Could you please confirm this.

I thank you.

Receiving payment for unordered item(s)

The issue

  1. The customer is prompted to make payment on clicking the "place order" button
  2. The payment is processed successfully
  3. The system tries to create the actual order from the quote object but fails for some reason. Let's call this reason... "network"
  4. The customer's account has been debited without an assurance of getting his/her order. The merchant most likely would never know he received payments for a good never gonna be delivered; not unless the customer complains anyway.

Solution

  1. Create the order with a "Pending Payment" status
  2. On successful order creation, prompt customer to make payments
    If payment is successful:
  3. Update the order status to "Processing"

@ibrahimlawal please let me know what's your take on this

Cant view the plugin after installation

I followed the steps to install the plugin on my localhost test machine but i cant view the plugin in my payment methods, its just empty, what might be the issue?

Payment tab not opening on Chrome

I have successfully installed and configured the paystack module. However, when I click on the pay button, it just keeps loading. This happens on Chrome

But on Safari, the payment goes through

Fatal Error Message During Installation..

Hello, Please see below error message and please assist in how it can be resolved.

Fatal error: Uncaught TypeError: Return value of Magento\InventoryComposerInstaller\Plugin_composer_tmp1::initModuleDeployment() must be an instance of Magento\InventoryComposerInstaller\void, none returned in phar:///opt/cpanel/composer/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code:69
Stack trace:
#0 [internal function]: Magento\InventoryComposerInstaller\Plugin_composer_tmp1->initModuleDeployment(Object(Composer\Script\Event))
#1 phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(176): call_user_func(Array, Object(Composer\Script\Event))
#2 phar:///opt/cpanel/composer/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(96): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Script\Event))
#3 phar:///opt/cpanel/composer/bin/composer/src/Composer/Installer.php(204): Composer\EventDispatcher\EventDispatcher->dispatchScript('pre-update-cmd', true)
#4 phar:///opt/cpanel/composer/bin/composer/src/Composer/Command/RequireCommand.php(18 in phar:///opt/cpanel/composer/bin/composer/src/Composer/Plugin/PluginManager.php(195) : eval()'d code on line 69

PS: following the guide as seen here: https://paystack.helpscoutdocs.com/article/88-how-to-setup-paystack-on-magento-2

Redirect to Success Page not work

I have tested this gateway on my Magento 2.1.1. using several templates including Magento/Luma templates.
After submitting payment information and payment success, customer is not redirected to order success page.

Payment Method Not Showing On Reload

Steps To Reproduce

  1. Add item to cart and go to checkout
  2. After filling details, go to the section where available payment options are shown. If Paystack is an available payment option, the error below shows

screen shot 2019-02-19 at 3 07 56 pm

3. Without proceeding, reload the page and Paystack will no longer show as a payment option.

Additional Features for extension

The Magento Extension for Paystack needs some improvements to make it operate at full capacity. Some of these features are

  • Support Magento Instant Purchase for One Click Checkout
  • Provide customers option of storing payment information for future transactions using charge authorization.
  • Stored customer card information can be used for orders created in the frontend or backend.
  • Stored cards deleted by customer in Magento are also deactivated from the merchant's integration using the Deactivate Authorization endpoint.
  • Full and partial refund support when creating credit memos.

An example of an extension that implements this is https://github.com/pmclain/module-stripe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.