• Resolved dplumptre

    (@dplumptre)


    Hello Sir,

    Thanks for your effort and all I really appreciate it. However I am still having some challenges

    I should have sent this in sooner but I was going through the forum to see if I can find the solution also studied the codes but the hooks in wp can be confusing after much reading and adjustment without any result I had to write to you

    After payment i am directed to the correct return URL

    https://tfxxxxxxxxxxxxxx.org/globalpay-transaction-response/?txnref=2-2198-1473177422&status=successful.

    I followed the following steps after installing the plugin – Activated the Plugin, Entered all necessary parameters (MerchID etc) – Created the Page (globalpay-transaction-response) – Changed Product Permalinks from Default to Shop Base

    After payment the globalpay-transaction-response Page is empty

    I had to even downgrade to make sure it was compatible with the update you did but still no luck

    WordPress 4.2.9

    WooCommerce Version 2.3.9

    Woocommerce GlobalPay 3.3

    hello here are the log files

    09-07-2016 @ 10:05:25 – Generating payment form for order #24.
    09-07-2016 @ 10:05:25 – User redirected to GlobalPay with the following:
    GlobalPay URL: https://demo.globalpay.com.ng/globalpay_demo/paymentgatewaycapture.aspx
    Array
    (
    [merchantid] => xxxxx
    [amount] => 300
    [currency] => NGN
    [merch_txnref] => 2-24-14732444444
    [name] => boyin plumptrePermalinks
    [names] => boyin plumptre
    [email_address] => [email protected]
    [phone_number] => 08089889978
    )

    09-07-2016 @ 10:48:12 – Generating payment form for order #24.
    09-07-2016 @ 10:48:12 – User redirected to GlobalPay with the following:
    GlobalPay URL: https://demo.globalpay.com.ng/globalpay_demo/paymentgatewaycapture.aspx
    Array
    (
    [merchantid] => xxxxxxxx
    [amount] => 900
    [currency] => NGN
    [merch_txnref] => 2-24-147324544444
    [name] => boyin plumptre
    [names] => boyin plumptre
    [email_address] => [email protected]
    [phone_number] => 08089889978

    I looked at the log files and I discovered that I am not getting array from global pay so I have change the permalink tried several apart from the default yet no result so I decided to use do a fresh install of

    wordpress 4.1.1
    woocommerce2.3.7
    woo commerce globalpay.3.3
    because I know this has been tested and yet I still didnt get the result.

    I will be glad if you can assist me as I am behind schedule for this project

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter dplumptre

    (@dplumptre)

    I noticed that I get a response array when I hit the requery button at the backend. However I just get redirected to a blank page in the globalpay-transaction-response page I created for response url which looks like this below

    https://xxxxxxxxxx.org/globalpay-transaction-response?txnref=2-20-1473329808&status=pending

    The response array after I hit the re-query button from the backend

    09-08-2016 @ 12:18:02 – Connecting to GlobalPay at https://demo.globalpay.com.ng/GlobalpayWebService_demo/service.asmx?wsdl
    09-08-2016 @ 12:18:05 – Response dump from GlobalPay Array
    (
    [getTransactionsResult] => <resultset><record><txnref>5916252121503913</txnref><channel>interswitch</channel><amount>900.00</amount><payment_date>9/8/2016 12:15:03 PM</payment_date><payment_status>pending</payment_status><field_values><field_values><field><names>adebanji Plumpt

    • This reply was modified 8 years, 5 months ago by dplumptre.
    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello there,
    What you described seems to indicate that you have not set the permalinks for your site appropriately.

    Make sure you are using WordPress’ default permalink setting otherwise user re-direction from GlobalPay’s website will not work. You can configure your permalink settings on the admin end by going to Settings -> Permalinks and ensure that the option selected is NOT the default.

    Please configure that permalinks as appropriate and try it again

    Thread Starter dplumptre

    (@dplumptre)

    Thanks for your response ,that is what I believe also but I didnt select default in the permalink to be precise

    under the common name , I selected the POST NAME

    and under the Product permalink base I selected shop base

    • This reply was modified 8 years, 5 months ago by dplumptre.
    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    In retrospect, a blank page indicates an application crash ie HTTP 500.

    Please read this link https://codex.www.ads-software.com/Common_WordPress_Errors

    Thread Starter dplumptre

    (@dplumptre)

    I have even uninstall my theme im using the default Twenty Fifteen theme to be sure it is not a theme issue the plugins are the woocommerce

    Thread Starter dplumptre

    (@dplumptre)

    I have gone through the link. I am not experiencing white screen or internal server error, what I meant by blank is that I get redirected to the response page alright but I dont get any data from global pay as regards the transaction, I just get the globalpay-transaction-response page which is just a plain page

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    I have not seen this issue before in my tests but then the plugin has not been updated in a while.

    I shall have to test the plugin with a fresh install of WordPress and WooCommerce.

    I will try this as soon as I can but I really cannot make any promises as to how quickly I can do that because of my schedule.

    But I will try.

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    Hello there.
    I just tried the plugin using WordPress 4.6.1 with WooCommerce 2.6.4 and it worked ie I cannot reproduce the problem you are referring to.

    The issue you are having may not be something to do with the plugin.

    Thread Starter dplumptre

    (@dplumptre)

    Its is working now , I want to thank you for the support so far , here is what I did

    I did a fresh install , but what I did differently was that when I was creating the response page which is globalpay-transaction-response. I didnt create it as a page on wordpress I created it as a post and just like that it worked.

    Thanks again

    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    You are not meant to create a page or post.

    The URL globalpay-transaction-response is an endpoint that the plugin listens for and handles automatically.

    Creating a post or page with that URL will have unintended consequences. You should delete it.

    Thread Starter dplumptre

    (@dplumptre)

    Hello Sir,

    Thanks again for this info. I will explain for the benefit of others

    After reading your last comment I went ahead and did a new install again with the latest

    wordpress and woocommerce as of this writing which is below

    wp 4.6.1

    woo commerce Version 2.6.4

    woo commerce global pay 3.3

    Further, I did the necessary setup , for the permalink ,under the common name , I selected the POST NAME and under the Product permalink base I selected shop base.

    I entered the necessary setup in the woocommerce settings page but this time I did not create any page or post. Consequently , I was redirected but this time to the checkout page where all the data showed like it should be.

    It was my fault I created the page earlier because after looking through your files I didnt see it in any of the script but now that you explained it I tried it and it worked .

    Thanks a ton , hope I didn’t give you too much trouble

    • This reply was modified 8 years, 5 months ago by dplumptre.
    • This reply was modified 8 years, 5 months ago by dplumptre.
    Plugin Author Feyisayo Akinboboye

    (@feyisayo)

    I’m glad you got it resolved.

    Good job on the perseverance shown and all the best with the project.

    Thread Starter dplumptre

    (@dplumptre)

    Thanks alot but there is something I noticed .

    Usually when there is a pending or perhaps failed transaction , if you navigate to your myaccount page you will see an option for pay, if you click on the pay button , you will be redirected the checkout page where you will be able to select pay via global pay and a “pay for order” button.

    Once you click on the “pay for order” button , the page updates and shows you the order you want to pay for and this statement below

    “Thank you for your order, please click the button below to pay with GlobalPay.” but the problem is that theres no button below, you wont see any button.

    I trace the words to the script and I saw this

    
        echo '<p>'.__('Thank you for your order, please click the button below to pay with GlobalPay.', 'woocommerce').'</p>';
    
          echo $this->generate_globalpay_form($order);

    Perhaps the generate form part did not show.

    I also noticed that mails weren’t dropping even after successful order although I am not sure if this is the problem of the plugin but then after setting the :FROM:” FIELD to a webmail in the email settings.

    These are things that I noticed and I feel I should just put it down here

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘blank page after being redirected from global pay’ is closed to new replies.