Support

Home Forums Event Espresso Premium Apple Pay Option

Apple Pay Option

Posted: December 11, 2024 at 12:45 pm

Viewing 3 reply threads


Katelyn

December 11, 2024 at 12:45 pm

I’ve set-up Apple Pay via Square, but am having issues with Apple Pay verifying our domain.

There’s also an issue that’s occurring that took down the website for a few seconds:
This error indicates a type mismatch in a PHP function. Let’s break it down:

Error Explanation
The function EED_SquareOnsiteOAuth::errorLogAndExit() is defined to accept an array as its third parameter ($data).
However, when this function is called on line 437, the third argument passed is a boolean value (true) instead of an array.
The error explicitly points to:

The function definition in /EED_SquareOnsiteOAuth.module.php on line 828.
The location of the problematic call in /EED_SquareOnsiteOAuth.module.php on line 437.
Key Details in the Error
Function Call:

php
Copy code
EED_SquareOnsiteOAuth::errorLogAndExit(Object(EE_Payment_Method), ‘Invalid domain …’, true, true)
The third argument passed here is true (a boolean).
The function errorLogAndExit() expects the third argument to be an array.
Function Definition:

php
Copy code
function errorLogAndExit($paymentMethod, $message, array $data, $exit = true)
Notice the array $data type hint. PHP 7+ enforces this type hint, so passing a non-array value (like true) triggers a TypeError.
Steps to Fix
1. Locate the Code
Go to /EED_SquareOnsiteOAuth.module.php line 437.
Find the function call to errorLogAndExit().
2. Analyze the Arguments
Review the third argument passed to the function. It’s currently true, which is a boolean.
Update this argument to ensure it is an array, e.g., an empty array [] or a properly structured array.


Tony

  • Support Staff

December 11, 2024 at 2:18 pm

Hi there,

I’ve set-up Apple Pay via Square, but am having issues with Apple Pay verifying our domain.

What issues are you running into? Whats happening? Any errors?

There’s also an issue that’s occurring that took down the website for a few seconds:

Confirmed, I’ll get an update to fix this.


Katelyn

December 11, 2024 at 2:23 pm

This reply has been marked as private.


Tony

  • Support Staff

December 11, 2024 at 3:40 pm

I’ve jsut pushed an update for the Square payment method to fix the type errors, along with all of out mot recent fixes within that payment method.

Go to Dashboard -> Event Espresso -> General Settings.

Don’t make any changes and just hit save to force an update check, it should then show the available update in the plugins menu.

However, that shouldn’t cause any issues with the Apple Pay validation.

Which domain are you validating?

Viewing 3 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso