Welcome Guest, Not a member yet? Register   Sign In
Openpay LIBRARY
#8

(08-30-2020, 02:34 PM)cgowez Wrote: The problem that I have now it's when I call any of the class/method like:

$customer = $openpay->customers->add($customerData);
$charge = $openpay->charges->create($chargeData);

I get the following error:
Call to undefined method stdClass::create()
Call to undefined method stdClass::add()

I don't know why I'm getting this error and how to fix it.
Do you have an idea what I'm doing wrong or what I need to change?
Thanks for your help.
Looks like the $openpay variable is not initialized to an openpay class.
Have you created the $openpay object? From the docs:
PHP Code:
$openpay Openpay::getInstance('MERCHANT_ID''PRIVATE_KEY''COUNTRY_CODE'); 
Reply


Messages In This Thread
Openpay LIBRARY - by ONGENERAL_TOWER - 03-10-2020, 11:46 AM
RE: Openpay LIBRARY - by includebeer - 03-12-2020, 09:49 AM
RE: Openpay LIBRARY - by cgowez - 08-25-2020, 12:25 PM
RE: Openpay LIBRARY - by Jan Zelenka - 08-26-2020, 04:44 AM
RE: Openpay LIBRARY - by cgowez - 08-26-2020, 07:55 AM
RE: Openpay LIBRARY - by Chroma - 08-27-2020, 04:43 AM
RE: Openpay LIBRARY - by cgowez - 08-30-2020, 02:34 PM
RE: Openpay LIBRARY - by tgix - 09-01-2020, 10:28 PM
RE: Openpay LIBRARY - by cgowez - 09-02-2020, 10:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB