PHP RestFul API with eCheck
I am currently testing a function I see added to the PHP RestFul API to accept payments via eCheck. There is currently no documentation on the Paypal Developer website, so I just read the API code and figure it out based on how I currently have it properly working with a credit card transaction.
Whenever I submit a transaction, I get an internal error on the Paypal API side:
Array
(
[name] => INTERNAL_SERVICE_ERROR
[message] => An internal service error has occurred
[information_link] => https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR
[debug_id] => 4a0a3d669966c
)
Get Http 500 response code when accessing https://api.sandbox.paypal.com/v1/payments/payment
The error is very vague and does not offer any hints of a possible solution.
I created a GIST so you can use the code I'm using, maybe something is missing here: ChargeEcheck.php
If there is a problem with this code, it should be between lines 140-152
I am not getting any other errors at all. The code on the credit card side is very similar to the code in this GIST and it works great.
I also looked through the developer dashboard and could not find anything that referred to any of the eCheck options to enable / disable.
Has anyone else had this problem using PHP RestFul API?
Some additional information I can provide:
Paypal Core SDK API 2.5.7
PayPal RestFul API Version 0.16.1
PHP 5.6.4
I would be happy to provide any additional information if needed.
source to share