Best practice of payment gateway integration