Fix Pay function - wrong params order