I had the same issue. Please note: You can follow either Client-side integration or Server-side integration at a time. If you create an order at client-side, you must capture the payment at client-side. and If you create an order at server-side, you must capture the payment at server-side. My mistake was I was creating an order from server-side and trying to capture it from client-side.
... View more