Fix payment API build errors