4 posts / 0 new
Last post
yashrathore9657
telecheck_purchase method in Payeezy.php returns error "payment_method_missing"

I am trying to integrate the Payeezy API to make it work for tele_check purchases. I am following the example test code provided. Credit card payment method did work, but telecheck_purchase isn't working. Gives me the following error :-

{"correlation_id":"124.1469470899145","Error":{"messages":[{"code":"payment_method_missing","description":"The payment method is missing"}]},"transaction_status":"Not Processed","validation_status":"failed","transaction_type":"purchase","amount":"10","currency":"USD"}

I am setting the payment method as "tele_check" and the Payeezy.php is expected to be working fine. So I am not sure what the mistake is.
Please help me out asap. Thanks.


yashrathore9657
Re: telecheck_purchase method in Payeezy.php returns error ...

I modified the code a little in the file Payeezy.php

replaced the code on line 440
$method_name = strtolower(func_get_arg(0));
with
$method_name = $args['method'];

and now it gives me :

{"correlation_id":"124.1469472499676","Error":{"messages":[{"code":"internal_server_error","description":"Internal Server Error"}]},"transaction_status":"Not Processed"}

What is wrong here?


rohitrajagopal3538
Re: telecheck_purchase method in Payeezy.php returns error ...

Yash - Please post the payload here.


yashrathore9657
Re: telecheck_purchase method in Payeezy.php returns error ...

Hey I finally got it working. The credentials provided in the PayeezyCheckLink.php were not correct. I replaced them with the one given on the site. And I was received the success message.
I still wonder why there was a mistake in the Payeezy.php file