Implemented partial payment api