Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 400 error #27

Open
rjsnh1522 opened this issue Feb 21, 2017 · 0 comments
Open

Getting 400 error #27

rjsnh1522 opened this issue Feb 21, 2017 · 0 comments

Comments

@rjsnh1522
Copy link

rjsnh1522 commented Feb 21, 2017

Hi I am using this in my old yii framework yii 1.0
and getting 400 error
Client error response
[status code] 400
[reason phrase] Bad Request
[url] https://api-3t.sandbox.paypal.com/nvp

I am not able to understand why . I have searched in stackoverflow also but haven't found any answer.

C:\xampp\htdocs\yii\app\protected\vendors\payum\core\Payum\Core\Exception\Http\HttpException.php(74)

62         } elseif ($response->isServerError()) {
63             $label = 'Server error response';
64         } else {
65             $label = 'Unsuccessful response';
66         }
67 
68         $message = implode(PHP_EOL, array(
69             $label,
70             '[status code] '.$response->getStatusCode(),
71             '[reason phrase] '.$response->getReasonPhrase(),
72             '[url] '.$request->getUrl(),
73         ));
74         $e = new static($message, $response->getStatusCode());
75         $e->setResponse($response);
76         $e->setRequest($request);
77         
78 
79         return $e;
80     }
81 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant