Viewing 14 replies - 16 through 29 (of 29 total)
  • Thread Starter emereuwa

    (@emereuwa)

    I think I’ve tracked down the issue.
    I noticed the change on line 199 'names' => $name,
    but your line 359 was calling end($order_payment_info['name'])
    instead of end($order_payment_info['names'])
    So changing the ‘name’ to ‘names’ solved the problem

    THis thread can now be marked as resolved

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello Mr Emeruwa,
    Sorry for the delayed response.

    This issue had occured before on GlobalPay’s API. This appears be a regression on their part. See https://github.com/Feyisayo/woocommerce-globalpay/commit/8c47afc94a6386c23bcdcc5729e27feeb22c21a8

    You can keep the code if it works for you. But I will need your help for something: I want to update the code to handle both ‘name’ and ‘names’. I will like you to help me test it with your credentials to see if it still works for you.

    I will post it soon.

    Thread Starter emereuwa

    (@emereuwa)

    Ok.
    I will be glad to test it out for you.

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Thanks Mr Emereuwa. I’m currently at an event. I will send it over by Monday

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello Mr Emereuwa,
    Sorry for the long delay. My schedule took a sudden turn for the hectic.

    Please bear with me a little longer concerning the code testing.

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello Mr Emereuwa. Thank you very much for your patience.

    I have updated the code of the plugin to address the ‘name’ issue as well as to be compatible with WordPress 4.0 and WooCommerce 2.2.4

    Please download the code and let me if it works for you.

    Here is the link: https://github.com/Feyisayo/woocommerce-globalpay/archive/dev.zip

    Thread Starter emereuwa

    (@emereuwa)

    Ok.
    Will let you know how it works out.

    Meanwhile, is there a way I can place a conditional statement on the return url page to post the returned values to another url based on transaction reference?
    I have two different applications that post to globalpay using the same merchant ID, username and password but generate different merchant Transaction references.
    So I want to be able to check the merchant transaction references in the return url, and if it is for platform 1, it populates my database, but if it is for platform 2, it posts all the parameters to another url which then populates another database.

    I don’t want to start fiddling unnecessarily with the plugin, so if you can help me out here, I’d be grateful.

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello Mr Emereuwa,
    I need some more information:
    1) Are the 2 applications WordPress installations?
    2) Do they both have the plugin installed?
    3) Are they both on the same domain?
    4) Which of the applications does GlobalPay redirect to?

    Thread Starter emereuwa

    (@emereuwa)

    Thanks Mr Akinboboye for taking time to respond.
    1. The applications are different.
    Mine is a wordpress install, the other is a vb.net application

    2. Only mine uses the plugin

    3. they are on different domains.

    4. Globalpay redirects to mine (the wordpress install).

    Since I cannot have two return urls configured by globalpay, we intend to post the returned parameters from globalpay to the appropriate application by checking the transaction ID. If it corresponds to the format generated by my own application, the process goes through as normal, but if the transaction ID is different and corresponds to that from the other application, it redirects to the application and posts all the parameters to it.

    I hope I am clearer in my explanation. If you require more explanation, please let me know.

    Regards

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello Mr Emereuwa,
    I’m sorry for the late reply. Things just popping up here and there.

    This issue should not be difficult to fix. However, I am planning a release for the WordPress 4.0 and WooCommerce 2.2.8

    I will add some hooks to the plugin that will allow other code to alter the logic flow.

    I could then help you out with a custom plugin to do this or you even do it yourself as I add the new features to the documentation.

    So keep an eye out for newest version version.

    Have you had a chance to test the code I sent you?

    Thread Starter emereuwa

    (@emereuwa)

    I tested it and though it works as expected, I get the following error on the Settings page:

    Warning: Missing argument 2 for globalpay_add_ngn_currency_symbol() in /home/xxxx/public_html/newinstall/wp-content/plugins/woocommerce-globalpay-dev/woocommerce-globalpay.php on line 853

    Despite the error, the plugin works well.

    However, I think the plugin lacks one key feature. A link to tell the customer what to do after making a purchase or a failure such as “Click Here to Continue Shopping” or “Return to Shop”. It is a requirement in the Zenith UAT process.
    I will add it manually, but if you can implement it, it would make the plugin complete.

    I await the new release.

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello Mr Emeruawa,
    I just realised I did not respond to your suggestion.

    I think directing the customer to the next step is beyond the scope of the plugin. That is something better achieved by the layout of the website. An appropriate button or link on the “Order received” page or even overriding its layout is one approach that can be taken.

    That’s my view anyway.

    A new version (3.2) of the plugin is ready and I am in the process publishing it. However, I spent some more time thinking about your request and I realized there is a simpler way to achieve it: Have your developer create a custom plugin that does the following:

    1) Hook into the ‘template_redirect’ action and check if the ‘global-transaction-response’ query var is set. See woocommerce-globalpay.php line 724 and 727 for a demonstration

    2) If ‘global-transaction-response’ is set then check if the ‘globalpay_order_id’ session is set (see line 743 of woocommerce-globalpay.php). If is NOT set then the order was NOT generated by the plugin but by your custom application. In this situation your plugin can redirect to your custom application.

    I hope this helps

    Thread Starter emereuwa

    (@emereuwa)

    Ok. Thanks.

    Hi friend…many thanks for this great plugin.

    but am not able to get it to work…i get the following error.

    Error:Index was outside the bounds of the array.

    can u help plsss..

    i await your response

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Plugin Not Posting names to Globalpay’ is closed to new replies.