This is for general discussions around integrating Paynow into your PHP applications
General Discussion - PHP Integration
Hi i am trying to integrate the PHP SDK but it keeps returning this error
Fatal error : Uncaught exception ‘InvalidArgumentException’ with message ‘Auth email is required for mobile transactions. When creating a mobile payment, please make sure you pass the auth email as the second parameter to the createPayment method’ in C:\xampp\htdocs\Paynow-PHP-SDK-master\src\Payments\Paynow.php:204 Stack trace: #0 C:\xampp\htdocs\Paynow-PHP-SDK-master\src\Payments\Paynow.php(149): Paynow\Payments\Paynow->initMobile(Object(Paynow\Payments\FluentBuilder), ‘263782283161’, ‘ecocash’) #1 C:\xampp\htdocs\Paynow-PHP-SDK-master\examples\mobile.php(26): Paynow\Payments\Paynow->sendMobile(Object(Paynow\Payments\FluentBuilder), ‘263782283161’, ‘ecocash’) #2 {main} thrown in C:\xampp\htdocs\Paynow-PHP-SDK-master\src\Payments\Paynow.php on line 204
My createPayment object is
$payment = $paynow->createPayment(‘Invoice 3’, ‘anthonyjek@yahoo.com’);
Hi @jeky. Thanks for bringing that issue to our attention. I’ve implemented a fix for it on this commit
A new version of the library (1.0.3 will be published to Packagist soon)
Cheers