Integrating payment API