Error creating a new payment methode

  • Posts: 199
  • Thank you received: 12
  • Hikashop Business
8 months 2 weeks ago #365237

-- HikaShop version -- : 5.1.2
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.2

When I create a new payment methode I get the error:

in /home/deb3757n292/domains/johnflora.nl/public_html/plugins/hikashoppayment/platron/PG_Signature.php (line 17)

    public static function getScriptNameFromUrl ( $url )
    {
        $path = parse_url($url, PHP_URL_PATH);
        $len  = strlen($path);
        if ( $len == 0  ||  '/' == $path{$len-1} ) {
            return "";
        }
        return basename($path);
    }

Could this please be fixed?

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

  • Posts: 84435
  • Thank you received: 13733
  • MODERATOR
8 months 2 weeks ago #365239

Hi,

That error was fixed two years ago:
github.com/HikaShop/hikashoppayment-platron/releases/tag/2.6.2
You need to update the plugin if you're using it, on uninstall it if not.

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

  • Posts: 208
  • Thank you received: 7
  • Hikashop Business
3 weeks 2 hours ago #368523

That fixed it. Thank you. Unfortunately, now I cannot see the new payment method in the check-out at all. I suspect I need to go to authorize.net and get the various keys they need. The nomenclature is different from what I had on the old payment method.
I'll post here if I solve this latest issue.

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

  • Posts: 84435
  • Thank you received: 13733
  • MODERATOR
2 weeks 6 days ago #368527

Hi,

Indeed, you need to provide the Login, Public Key and Transaction Key in the payment method parameters. Otherwise the payment method won't appear on the checkout.

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

  • Posts: 208
  • Thank you received: 7
  • Hikashop Business
2 weeks 5 hours ago #368628

I purchased the new authorize.net plugin, I configured it properly, but now after I enter a credit card I get this obscure error message:

"Please include Acceptjs library from cdn."

Attachments:

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

  • Posts: 84435
  • Thank you received: 13733
  • MODERATOR
1 week 6 days ago #368631

Hi,

Here is someone else which reported the same issue:
www.hikashop.com/forum/payment-methods/9...cept-js-message.html
You can read the details there, but basically the problem comes from some "page speed / optimization / minify" extension for Joomla you have which merges the javascript files together. The JS files from Authorize.net should be excluded from this because Authorize.net doesn't allow for it.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum