The adaptive payment api