title: Payment Gateway Integration between Android app and Web Api
body: <p>This is my first time integrating a payment gateway. I am trying to integrate <a href="https://developer.flutterwave.com/docs" rel="nofollow noreferrer">FlutterWave </a> Payment gateway in my application. Its an <strong>Android app</strong> native with <strong>.net Web Api/Rest</strong> as backend. We deduct amount from customer credit card and as soon as payment is completed, on success we update the role of user to Pro in database. I am stuck as where should I integrate the payment gateway.</p>
  <ol>
  <li><strong>Gateway integration at Android Side</strong> :
  Open the payment gateway screen in android app and take information from user and call the flutterwave api from android app. On success, post the information to the our web api. Issue in this strategy is, if the mobile internet connection gets lost or app is closed, the payment would have been completed without our backend server knowing about it and we would have lost all information related to transaction.</li>
  <li><strong>Gateway integration at Web Api side</strong> : Takes information from user in android app and post the information to our server. On the server, the flutterwave api is called with the posted information and response is saved in database and notified to android app. Advantage is no information is lost about the transaction but sending card/bank related information from android to Web Api will be secured or not, and how to integrate the OTP process in it. We have SSL on our domain and should I save the CVV in database ?</li>
  </ol>