Adding changes to return api error code
Adding changes to handle cards as merchants and capture and refund operations too
Adding sample code for charges