Support

Home Forums Event Espresso Premium Square Payment Plugin throws Type Error

Square Payment Plugin throws Type Error

Posted: May 26, 2022 at 4:35 pm

Viewing 4 reply threads


utahhockey

May 26, 2022 at 4:35 pm

Argument 1 passed to EED_SquareOnsiteOAuth::decryptString() must be of the type string, null given, called in /var/www/html/utahhockey.com/wp-content/plugins/eea-square-gateway/modules/EED_SquareOnsiteOAuth.module.php on line 459

When Activating the Square Payment Module it’s requesting a String Value and is passed NULL causing an error.


utahhockey

May 26, 2022 at 5:16 pm

I think based on these pieces of code we’re half configured, and wherever this META_KEY_ACCESS_TOKEN is stored is not set, and the script errors.

‘ $access_token = EED_SquareOnsiteOAuth::decryptString(
$square_pm->get_extra_meta(Domain::META_KEY_ACCESS_TOKEN, true, ”),
$square_pm->debug_mode()
);


utahhockey

May 26, 2022 at 5:28 pm

Okay so the issue appears to be that our data is half configured the ACCESS KEY value in the database field is set to NULL.


utahhockey

May 26, 2022 at 5:47 pm

in the table ‘esp_extra_meta’ there are two fields ‘applcation_id’ and ‘access_token’ these fields being NULL created the error above.

Once I cleared made the fields “” instead of NULL the system reset and I was able to reauthenticate the app.


Joao Victor

  • Support Staff

May 31, 2022 at 1:42 pm

Hi there!

We are glad you were able to figure this out.
Please, let us know if you have any further questions!

Viewing 4 reply threads

The support post ‘Square Payment Plugin throws Type Error’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso