- Posts: 143
- Thank you received: 9
Stripe : Call to a member function getCustomer() on null
- ButterflyPixel
-
Topic Author
- Offline
Less
More
7 years 10 months ago - 7 years 10 months ago #300748
by ButterflyPixel
-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Call to a member function getCustomer() on null
Hi, we configured the new bought stripe connect to our site and having this error problem :
snap.ashampoo.com/F48H2dF02It0AUfKxqu1Cp...qrhIC3DflolgxHjVxXZe
Configuration in stripe plugin :
snap.ashampoo.com/HkSM1jQUlnoYVwrzOMUXEE...RVsbdHzimltboS55e0SA
We are with test credentials from Stripe, test informations are :
4242 4242 4242 4242
04 / 24
242
postcode 42424
Any idea ?
Regards,
Olivier
-- Joomla version -- : 3.9
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Call to a member function getCustomer() on null
Hi, we configured the new bought stripe connect to our site and having this error problem :
snap.ashampoo.com/F48H2dF02It0AUfKxqu1Cp...qrhIC3DflolgxHjVxXZe
Configuration in stripe plugin :
snap.ashampoo.com/HkSM1jQUlnoYVwrzOMUXEE...RVsbdHzimltboS55e0SA
We are with test credentials from Stripe, test informations are :
4242 4242 4242 4242
04 / 24
242
postcode 42424
Any idea ?
Regards,
Olivier
Last edit: 7 years 10 months ago by ButterflyPixel.
Please Log in or Create an account to join the conversation.
7 years 10 months ago #300765
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stripe : Call to a member function getCustomer() on null
Hello,
Please re-download the Stripe Connect (payment) plugin.
Because you do not have a ClientID, the API class is not loaded has it should be.
I removed the requirement on the ClientID ; so it should be better !
Regards,
Please re-download the Stripe Connect (payment) plugin.
Because you do not have a ClientID, the API class is not loaded has it should be.
I removed the requirement on the ClientID ; so it should be better !
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- ButterflyPixel
-
Topic Author
- Offline
Less
More
- Posts: 143
- Thank you received: 9
7 years 10 months ago #300768
by ButterflyPixel
Replied by ButterflyPixel on topic Stripe : Call to a member function getCustomer() on null
Thanks !
Please Log in or Create an account to join the conversation.
7 years 10 months ago - 7 years 10 months ago #300958
by earmaster
Replied by earmaster on topic Stripe : Call to a member function getCustomer() on null
I was also getting this error and I saw your post, so now I updated the plugin and the error is different now.
The order gets cancelled, and in the Stripe Log I can see that both POST/ v1/Tokens and POST / v1/Charges fail with error 400.
Her is the Stripe log response for the Tokens:
I hope it helps.
The order gets cancelled, and in the Stripe Log I can see that both POST/ v1/Tokens and POST / v1/Charges fail with error 400.
Her is the Stripe log response for the Tokens:
Code:
{
"error": {
"message": "Must authenticate as a connected account to be able to use customer parameter. See https://stripe.com/docs/api#create_card_token for more details.",
"param": "customer",
"type": "invalid_request_error"
}
}
Last edit: 7 years 10 months ago by Jerome. Reason: [code] tag is nice
Please Log in or Create an account to join the conversation.
7 years 10 months ago #300967
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stripe : Call to a member function getCustomer() on null
Hello,
Please re-download the HikashopPayment Stripe Connect plugin.
It looks like you're using the "preferred charge" in "direct" mode but, without a vendor, the result is not a good one.
I change the algorithm in order to not use the "direct" charge when there is no vendor ; it should avoid your issue.
Regards,
Please re-download the HikashopPayment Stripe Connect plugin.
It looks like you're using the "preferred charge" in "direct" mode but, without a vendor, the result is not a good one.
I change the algorithm in order to not use the "direct" charge when there is no vendor ; it should avoid your issue.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
7 years 10 months ago #301045
by earmaster
Replied by earmaster on topic Stripe : Call to a member function getCustomer() on null
Thank you for the fast response! It seems to have fixed it. I could complete a transaction in test mode. The only thing that is not working as expected is that the customer doesn't receive a confirmation email in the right language (always in English even though he ordered form the French or Spanish version of our shop).
Please Log in or Create an account to join the conversation.
7 years 10 months ago #301062
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stripe : Call to a member function getCustomer() on null
Hello,
HikaShop has a column to store the language when an order is created ; so it can use that language when the order notification are sent.
With modification in the language override system (due to Joomla 4 support) ; it might be something related.
In order to avoid such kind of problem, we can add the "lang" parameter in the notification URL to ensure the customer current language will be used by Joomla during the IPN process.
The idea is to change the line (in the plugin) :
By
Regards,
HikaShop has a column to store the language when an order is created ; so it can use that language when the order notification are sent.
With modification in the language override system (due to Joomla 4 support) ; it might be something related.
In order to avoid such kind of problem, we can add the "lang" parameter in the notification URL to ensure the customer current language will be used by Joomla during the IPN process.
The idea is to change the line (in the plugin) :
Code:
$this->notifyurl = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment='.$this->name.'&tmpl=component&order_id='.$order->order_id;
Code:
$this->notifyurl = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment='.$this->name.'&tmpl=component&order_id='.$order->order_id.'&lang='.$this->locale;
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
7 years 10 months ago #301105
by earmaster
Replied by earmaster on topic Stripe : Call to a member function getCustomer() on null
Thanks. Is it something that you will add to the plugin later, or do we have to edit the code?
Please Log in or Create an account to join the conversation.
7 years 10 months ago #301106
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stripe : Call to a member function getCustomer() on null
Hello,
It will be added in the plugin with the next update.
Regards,
It will be added in the plugin with the next update.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: earmaster
Please Log in or Create an account to join the conversation.
7 years 10 months ago #301158
by earmaster
Replied by earmaster on topic Stripe : Call to a member function getCustomer() on null
Awesome, thanks a lot!
Please Log in or Create an account to join the conversation.
Time to create page: 0.243 seconds