Error during the creation of your Mangopay customer profile

  • Posts: 1
  • Thank you received: 0
3 years 1 month ago #330660

-- HikaShop version -- : 4.4.1
-- HikaMarket version -- : 3.1.1
-- Joomla version -- : 3.9.23
-- PHP version -- : 7
-- Browser(s) name and version -- : Google Chrome 89.0.4389.82
-- Error-message(debug-mod must be tuned on) -- : Error during the creation of your Mangopay customer profile

Hello,

I installed the Mangopay hikamarket module on my site, I filled in the Mangopay key (id and my password).

Here is the error message I received:
Error during the creation of your Mangopay customer profile

I contacted Mangopay who told me that the plugin does not send any request on the server of Mangopay (when a user creates an account on my site).

The account is created on the site successfully.
But it is impossible to complete the payment process because the profile is not created at Mangopay.

Can you please help me to solve this problem?
Is it possible to have your e-mail to send you a screenshot?

Thank you
Sincerely
Georges LEGER

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
3 years 1 month ago #330674

Hello,

We replied to your message in the "contact us" form.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
3 years 1 month ago #330682

Hello,

Some news after a lot of investigation.
I enabled the "DebugMode" in the plugin for another website would reported the same issue.
I was able to see that there is a 404 page returned by MangoPay during the OAuth authentication call.
The return content is a HTML page

    <title>Error Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" href="/Content/themes/barnie/css/bootstrap.min.css">
    <link rel="shortcut icon" href="/Content/themes/barnie/img/custom/favicon.png">
    <style type="text/css">
        body {background: #f7f7f7 url(/Content/themes/barnie/img/main-back.png) repeat;text-align: center;}
        div {margin-top: 50px;}
        div.title {font-size: 5em;font-weight: bold;}
        div.message {font-size: 2em;}
    </style>
    <div class="logo">
        <img src="/Content/themes/barnie/img/custom/logo.png">
    </div>
    <div class="title">:-(</div>
    <div class="message">Oops, that page can not be found.</div>
I made a little search on "barnie/img/main-back" and I have found that the page is a 404 page coming from MangoPay :
github.com/Mangopay/mangopay2-java-sdk/i...suecomment-525256369

The MangoPay plugin is not using the latest version of the PHP Library provided by MangoPay but that library should be still supported by the platform.
For an unknown reason, something changed in the MangoPay API platform and, in some websites, the OAuth called return with that 404 page (I can't reproduce it in two test websites, using different PHP version, etc).

ManogPay support is telling that they do not receive any API call from the website but. The call is perform and catch by "something" which gave that 404 HTML page instead.
The plugin is performing the cURL call as before ; the fact that they server do have a "firewall" (or something else), blocking content is not the plugin fault (since it's using their official library and it is working on some websites).

I do hope that their support will be able to perform a full investigation and perform a fix on their platform ; which seem to be a important regression impacting multiple website.

But I do understand that it's easier to reply on the plugin fault :)
Testing the issue is simple ; it requires to edit the "plugins/hikashoppayment/mangopay/mangopay.php" file and replace the line
$this->api->Config->ClientPassword = $this->params->get('clientpassword');
By
$this->api->Config->ClientPassword = $this->params->get('clientpassword');
$this->api->Config->DebugMode = true;
And then, in the HikaShop backend, edit the MangoPay payment instance and click on "save".
Some debug data will be printed on screen, generated by the MangoPay PHP Library and if you see the smiley with the content "Oops, that page can not be found.", you got the MangoPay 404 page.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.066 seconds
Powered by Kunena Forum