error Stripe Plugin - 0 Call to a member function create() on null

  • Posts: 18
  • Thank you received: 1
4 years 2 weeks ago #325341

-- url of the page with the problem -- : shop.leamichedichicca.it/
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.3.8

Dear Sirs,

I have a problem with Stripe Payment Plugin. The first time I did a payment (using development keys and fake credit card), all went fine.
But after the first attempt, all other failed with the error "0 Call to a member function create() on null".

I don't unterstand why, because nothing changed on settings. On Stripe account, I see that for the first transaction these requests:
POST /v1/tokens,
POST /v1/customers
POST /v1/charges.

For all others transactions I have only the POST /v1/tokens.

Could you help me?

Thank you,

Danilo

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
4 years 2 weeks ago #325369

Hello

Please enable temporally the debug mode in your Joomla global configuration so you will have the call stack for the error.
It will gave us the line where the error is generated and allow us to understand why an object is not initialized.

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.
Last edit: 4 years 2 weeks ago by Jerome.

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

  • Posts: 18
  • Thank you received: 1
4 years 2 weeks ago #325376

Thank you for fast answer.

In attachment the screenshot of debug mode.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 weeks ago #325408

Hi,

Please note that you're using the legacy Stripe plugin which isn't supported anymore. On Stripe's end too, the API this plugin uses isn't SCA compliant and the API is supposed to be discontinued already.
To use Stripe, you need to use this plugin which is the only current and supported solution for Stripe and HikaShop:
www.hikashop.com/marketplace/product/133...nect-by-obsidev.html

The following user(s) said Thank You: Baracus

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

  • Posts: 18
  • Thank you received: 1
4 years 2 weeks ago #325466

hi,

yes, I bought the Plugin V3 and now all is perfect.

Thank you,

Danilo

Last edit: 4 years 2 weeks ago by Baracus.
The following user(s) said Thank You: Philip

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

Time to create page: 0.062 seconds
Powered by Kunena Forum