Coder Social home page Coder Social logo

mage2pro / ipay88 Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 4.0 247 KB

iPay88 integration with Magento 2

Home Page: https://upwork.com/fl/mage2pro

PHP 74.58% JavaScript 11.15% Less 14.27%
magento2 malaysia ipay88 magento2-extension magento2-module mage2pro mage2pro-module mage2pro-payment mage2pro-module-ready mage2pro-module-reusable

ipay88's Introduction

This module integrates a Magento 2 based webstore with the iPay88 payment service (Malaysia, Indonesia, Philippines, Thailand, Singapore, China).
The module is free and open source.

Demo video

https://www.youtube.com/watch?v=hgg7cu9y57c&list=PLTq8uOpBQGsEVWfTrncggf2XnngZYaUJa

The available payment options for Malaysia

How to install

Hire me in Upwork, and I will:

  • install and configure the module properly on your website
  • answer your questions
  • solve compatiblity problems with third-party checkout, shipping, marketing modules
  • implement new features you need

2. Self-installation

bin/magento maintenance:enable
rm -f composer.lock
composer clear-cache
composer require mage2pro/ipay88:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f ms_Latn_MY en_US <additional locales, e.g.: zh_Hans_CN>
bin/magento maintenance:disable

How to update

bin/magento maintenance:enable
composer remove mage2pro/ipay88
rm -f composer.lock
composer clear-cache
composer require mage2pro/ipay88:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f ms_Latn_MY en_US <additional locales, e.g.: zh_Hans_CN>
bin/magento maintenance:disable

ipay88's People

Contributors

codekipple avatar dmitrii-fediuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ipay88's Issues

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row

Magento Version: Community Edition 2.2.3
Mage2Pro/iPay88 Version: 1.6.1

When returning to the the website at /dfe-ipay88/customerReturn, we are getting a 503 response and seeing an error processing report number.

When looking at the report in var/report we see the following error:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (database.sales_order_status_history, CONSTRAINT SALES_ORDER_STATUS_HISTORY_PARENT_ID_SALES_ORDER_ENTITY_ID FOREIGN KEY (parent_id) REFERENCES sales_order (entity_id) ON DELETE), query was: INSERT INTO sales_order_status_history (is_customer_notified, is_visible_on_front, comment, status, entity_name) VALUES (?, ?, ?, ?, ?)

This is not happening for every customer, making it very difficult to test and replicate. We've also checked the logs for the orders this is happening for in var/log/mage2.pro and there are no errors in the customerReturn.json files.

The module is simply failing to save a record to the sales_order_status_history table.

This error is being thrown in the function df_order_comment and I believe it's because the customer's Session has not persisted when the customer returns to the store after being redirected to the external iPay88 payment gateway.

Please could you help explain why this might be happening and if possible, provide a patch/fix for this problem.

Thank you

"Declaration of X must be compatible"

May I ask if this module (and mage2pro/core) is compatable (or would be updated to be) with M2.4.5 + PHP8.1? I tried updating a dev site to 2.4.5 from 2.3.7 and the module is triggering a number of "Declaration of X must be compatible" errors. I also noticed zendframework is no longer loaded in Magento 2.4.5, but is still required by mage2pro/core.

Whether the «Public bank» is supported?

we notice that in myr.json there is a list of banks
{
"2": "Credit Card (MYR)"
,"6": "Maybank2U"
,"8": "Alliance Online"
,"10": "AmOnline"
,"14": "RHB Online"
,"15": "Hong Leong Online"
,"20": "CIMB Click"
,"22": "Web Cash"
,"48": "PayPal (MYR)"
,"100": "Celcom AirCash"
,"102": "Bank Rakyat Internet Banking"
,"103": "affinOnline"
,"134": "Bank Islam"
,"152": "UOB"
,"166": "Bank Muamalat"
,"167": "OCBC"
,"168": "Standard Chartered Bank"
}

Is other payment options supported by iPay88 supported by this plugin? For instance there is no public bank in this list. How can we add more support for different options ?

Ipay88 Extension issue after payment Success

HI,

Please find the attachment.

We have integrated Ipay88 Magento extension. Extension is working successful till the payment complete, once the payment Complete it redirects to success page but success page is not loading the Transaction information (like Transaction Id, Transaction amount, Etc…) and Success page not loading the Website Header and footer (Please refer attachment).

Please help us with this issue ASAP.

Thanks & Regards,
Srinivas Gundali
+60169706474
Email : [email protected]
Skype : srinivas.gundale1
IMG-20200921-WA0000

«Cannot add or update a child row: a foreign key constraint fails (magento2.sales_order_status_history, CONSTRAINT SALES_ORDER_STATUS_HISTORY_PARENT_ID_SALES_ORDER_ENTITY_ID FOREIGN KEY (parent_id) REFERENCES sales_order (entity_id) ON DELETE CASC), query was: INSERT INTO sales_order_status_history (is_customer_notified, is_visible_on_front, comment, status, entity_name)»

"0":"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row:
a foreign key constraint fails
(magento2.sales_order_status_history, CONSTRAINT SALES_ORDER_STATUS_HISTORY_PARENT_ID_SALES_ORDER_ENTITY_ID FOREIGN KEY (parent_id) REFERENCES sales_order (entity_id) ON DELETE CASC), query was: INSERT INTO sales_order_status_history (is_customer_notified, is_visible_on_front, comment, status, entity_name) VALUES (?, ?, ?, ?, ?)","1":"#1

[Magento 2.2 / 2.3] The iPay88 module shows the «Please agree to all the terms and conditions before placing the order» warning even if the terms and conditions checkbox is checked

Hi,
I'm attempting to upgrade a site using this module to magento version 2.2.2. After upgrading I'm having an issue where I cannot get past the checkout page.

After picking a payment option, checking the terms and conditions checkbox and clicking the 'Place Order' button it fails to re-direct me and just keeps showing the error message 'Please agree to all the terms and conditions before placing the order.' despite the fact that I have checked the terms and conditions checkbox.
screen_shot_2018-01-08_at_16_38_21

I tried reverting the codebase back to the current Magento version the site is using (2.1.7) and the plugin again works as normal. I'm not sure when the functionality of the agreementsValidator code has changed between 2.1.7 and 2.2.2.

I've been looking into the issue but not having much luck so far. The part of Magento that creates the error message is vendor/magento/module-checkout-agreements/Model/Checkout/Plugin/GuestValidation.php line 104.

It may be only a problem with this site because of other 3rd party code rather than your plugin. I was just wondering if you have checked compatibility with Magento 2.2.2?

Thanks very much,
Carl

iPay88 does not allows micropayments: «Invalid parameters(Invalid Amount)». I should disable iPay88 payment option for such payments.

An example of iPay88 response to a micropayment:

{
    "ActionType": "",
    "Amount": "0.10",
    "AuthCode": "",
    "CCCOriTokenId": "",
    "Currency": "MYR",
    "DiscountedAmount": "",
    "ErrDesc": "Invalid parameters(Invalid Amount)",
    "HiddenToURL": "https://fiffybaby.com/dfe-ipay88/customerReturn",
    "MerchantCode": "M11156",
    "MTLogId": "",
    "MTVersion": "",
    "PaymentId": "2",
    "PromoCode": "",
    "RefNo": "1000002108",
    "Remark": "fiffybaby.com // Dmitry Fedyuk // 1000002108",
    "Signature": "",
    "Status": "0",
    "TokenId": "",
    "TransId": "T135985740300"
}

IPay88 payment mehod wan't load on checkout.

Hi!
Magento 2.2.3
php-mysql - Latest verions

I have installed iPay88 extesnion using composer. I have many stores in my site.
But for malaysia i installed iPay88 for payment method. But is wan't load on checkout page.
I have selected default country as malaysia for malaysia store and enable this method for malaysia store with correct Live Merchant Code and Live Merchant Key.

I can see loader.js of iPay88 is loading but no payment method.
I am attaching the settings of iPay88.
ipay88

Please suggest solution or am i missing someting?
Thanks a lot

Country validator is causing problems

We are experiencing a problem which occurs maybe once every couple of months.

This is the error message regarding it:-

[df_country_ctn] The argument «Неизвестный параметр» is rejected by the «Df\Zf\Validate\StringT\Iso2» validator. The diagnostic message: Система не смогла распознать значение «» типа «string» как 2-буквенный код страны под стандарту ISO 3166-1

When debugging the affected order I have found a problem in the database table sales_payment_transaction.
In the record with type capture the additional_information field which contains a PHP serialised array always has this in it S_country";s:0:"". So the country code is empty.
My fix for it has been to change the country code in the serialised array to what it should be myself.

When the problem occurs it stops an admin user from being able to print the invoice for the order in the admin. But worse than that it also stops an order's confirmation email from being sent.

Another side affect we are experiencing is that it stops any new orders after the affected order from having their confirmation emails sent either. We have Magento 2 setup so it sends email asynchronously, this means the cron job is responsible for sending out the new order confirmations. My guess is that Magento continually tries to send all new order confirmation emails starting with the oldest order first. It triggers the error above about the country code, errors out and just fails. So the cron job never manages to make it past the order it fails on. I think this is a bad design choice by Magento.

So in regards to your plugin what I think is happening in some cases the payment gateway for some reason is not sending back the two letter country code. I do not know under what circumstances these are but whenever it happens after checking the users billing and shipping address they have in fact provided a country and also the order has been successfully placed and payment taken.

Would it be possible for your plugin to handle the scenario of the two letter country code not being provided in the return output of the payment gateway?

For proof that I am reporting this issue on behalf of a paying customer see this earlier issue - #7

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.