Cardinity payment error MethodNotAllowed
Cardinity payment error MethodNotAllowed
Can anybody help me to solve this error.
My code:
$method = new Finalize(Session::get($request['MD']), $request['PaRes']);
Error:
Method Not Allowed – You tried to access a resource using an invalid HTTP method. Response data: C:22:"CardinityMethodError":174:"type":"https://developers.cardinity.com/api/v1/#405","title":"Method Not Allowed","status":405,"detail":"This resource supports only GET,POST, but you've sent PATCH."
1 Answer
1
Make sure your $request['MD'] value is not empty, because with PATCH/PUT requests you must specify which entity you are updating.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.