• Resolved Shaiq Uddin

    (@shaiq-uddin)


    So we’ve activated MPGS plugin on our client’s demo site. They use Saudi Fransi e-Pay. After adding all details in the plugin, the credit card option shows up on the checkout page. However, after completing the checkout, it shows order confirmation but doesn’t redirect to the hosted payment page. Production API credentials are being used.

    We were previously redirecting to the payment page but it used to show an Invalid Request error. Upon contacting the MasterCard team, they asked us to add the following object in the plugin code on line 300.

    transaction: {
    reference: “TRF”.”<?php echo $order_id; ?>”
    },

    However, after we added this snippet in the plugin code, the checkout page doesn’t proceed to the payment page. If we remove the code, it shows Invalid Request on the payment screen.

    After adding snippet: https://prnt.sc/u5iqd0
    Before adding snippet: https://prnt.sc/u5irue

    Kindly assist.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Ali Basheer

    (@alibasheer)

    Hi @shaiq-uddin,

    I suggest not editing the plugin, instead just use a lower API version.

    You can remove the edited plugin and install fresh one again, then use API version lower than 55. Try with 49 and 54 and let me know if this fixes your issue.

    We are in the process of publishing new version that contain the line of code that your provider suggested, this will help us cater for newer versions above 55.

    I hope this helps.

    Best,
    Ali

    Thread Starter Shaiq Uddin

    (@shaiq-uddin)

    Can you please provide me with the updated plugin if it is ready to be released? Or if you could give an ETA. The support from the bank and MasterCard team is very slow.

    Thread Starter Shaiq Uddin

    (@shaiq-uddin)

    I used test API credentials without editing the plugin and it worked. However, when using the production API credentials, it gives the same old Invalid Request error. I’m using API version 49. Kindly assist.

    Plugin Author Ali Basheer

    (@alibasheer)

    Hi @shaiq-uddin ,

    As it worked on the test API it means the plugin is working at your end. The fact that it is not working with the live could be:
    – Either the website currency is different than the merchant live account currency
    – Or The bank didn’t activate your live merchant account
    – Or there is a minimum transaction value rule that is set on your live account, this means if you are trying to test the live account with real credit card but with a very small amount (like 1$) this could be a reason

    Did you manage to resolve the issue?

    Thread Starter Shaiq Uddin

    (@shaiq-uddin)

    Yes. MasterCard team helped me to resolve the issue.

    That’s great. If possible could I email you and discuss how it was resolved. Am waiting for the mastercard team to get back to you. You can reach me on [email protected]

    Thread Starter Shaiq Uddin

    (@shaiq-uddin)

    Kindly email at shaiq @ skyquestcorp.com and let me see how can I assist you.

    We’ve successfully enabled mpgs and launched our client’s site. The temporary fix was to add a transaction reference object in the code snippet and ask the bank to activate the live merchant account when using production API. You can take a look here: https://www.capooss.com/

    @shaiq-uddin
    could you please share the code that you added to code snippet and solve this issues ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Stuck on the checkout page’ is closed to new replies.