Aleatory 0 error with Stripe checkout

  • Robert Gastaud
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 1 month ago #132429 by Robert Gastaud
Aleatory 0 error with Stripe checkout was created by Robert Gastaud
Hi,

Sometimes PayPal and Stripe Checkout (both activated, only these two plugins) were displayed on the registration form, sometimes only PayPal.

When I disable PayPal plugin and let only Stripe, sometimes I have an error "0 - Call to a member function getName() on null"
and
Call to a member function getName() on null
/home/www/sitesclients/***********/components/com_eventbooking/themes/default/register/register_payment_methods.php:85

PHP is 7.3.15

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

More
4 years 1 month ago #132436 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Aleatory 0 error with Stripe checkout
Hello Robert

Look like you choose payment methods under each event and it causes the error

To solve the issue, please edit the event:

- Make sure you choose ALL Payment Methods
- Or if you want to select payment methods for each event, then edit the event, look at Advanced Settings tab, find Payment Methods parameter, choose the payment methods you want to use for that event, save it

After that, it will work as expected

Tuan

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

  • Robert Gastaud
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 1 month ago #132450 by Robert Gastaud
Replied by Robert Gastaud on topic Aleatory 0 error with Stripe checkout
Hello Tuan,

You're right! Some test events were set with only PayPal method.
I changed it and it works now.

Thanks!
Robert

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

More
4 years 1 month ago #132452 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Aleatory 0 error with Stripe checkout
Great. Thanks for confirming Robert

Tuan

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

Moderators: Tuan Pham Ngoc