> For the complete documentation index, see [llms.txt](https://songalaxy1344.gitbook.io/foodzone/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://songalaxy1344.gitbook.io/foodzone/payment-gateway-integrations.md).

# Payment GateWay Integrations

This section will help you to integrate the payment gateway into your application. Please make sure the payment gateways which we used on the default application is a sandbox account.

We have used 4 type of payment systems inside the FoodZone Application.You can change or add new payment gateway according to your requirements and with your country.

**Please note that**: We used Sandbox account for the Braintree (Card and Paypal) and for the stripe payment gateway.Actual amount **will not be deduct** from the customer's account.

1. Cash on Delivery
2. Pay to Pickup
3. Stripe Payment Gateway
4. Braintree Payment Gateway (**Card** Payment and **Paypal** Payment)

### &#x20;1)  Stripe Payment Gateway

For Stripe Payment gateway integrations your need to register on stripe portal.

[-> Stripe Payment Gateway Portal](https://dashboard.stripe.com/test/dashboard)

![Stripe Dashboard](https://1213756405-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50heLzgCJjTxyILKBC%2F-M5KuscVAMtJnbZHQU4J%2F-M5KzC7kNKY7txmULHIr%2FStripePayment.png?alt=media\&token=813c0ef1-0834-404d-891a-6709c3b8ac08)

* As mentioned above you need to register your stripe account as a sandbox account.
* After that once everything work perfect you may go to make your account live.
* Once your account is ready and set your publish key on application payment will reflect on stripe dashboard if everything works perfect.
* Copy Your Publish key and add it on you flutter application at **lib -> helper -> Constant -> KeysClass -> publishKey**

![Replace Copied Publish key on Flutter Project](https://1213756405-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50heLzgCJjTxyILKBC%2F-M5L-5OGLszyWwnTTsFf%2F-M5L06AhRikZUPWgtk7y%2FPublishKey.png?alt=media\&token=5fad2881-0724-4855-aea5-7c071f0013b9)

* Now your application is ready to receive with stripe payment.
* We added important links on link sections.

### 2)  BrainTree(Card & Paypal) Payment Gateway

* Before going to setup Braintree PayPal and Card account you need to register on portal.
* Linked your PayPal account to Braintree.

[-> Braintree Payment Gateway Portal](https://sandbox.braintreegateway.com/login)

* Add all required details and select the payment methods which you want to set like.

![Select Braintree Payment methods.](https://1213756405-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50heLzgCJjTxyILKBC%2F-M5LCwTf234Q2VWWoeIX%2F-M5LDLiWheCt7xOuF8Ht%2FProcessForSetupBrainTree.png?alt=media\&token=1a4299aa-8229-4682-bfef-f9a29c807ca2)

* Registered with all required details you will get merchant id which will use on flutter application.

![MerchantID Which is required for flutter project](https://1213756405-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50heLzgCJjTxyILKBC%2F-M5LCwTf234Q2VWWoeIX%2F-M5LDy1gQqq2zt-NSa7T%2FMerchantID_Paypal.png?alt=media\&token=3d0ba0a7-8618-4ab6-843b-fbf01b4383a0)

* Copy your merchant id and add it to the flutter project as mentioned on image.

![Add your MerchantID to Flutter Project on constant file](https://1213756405-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50heLzgCJjTxyILKBC%2F-M5LCwTf234Q2VWWoeIX%2F-M5LEB4UHEDjIRP0zeoS%2FMerchantID.png?alt=media\&token=ed01124c-6cbe-4947-bb3f-9c44fc9b9c37)

* once everything is done your Braintree payment transaction has been reflect on Braintree dashboard.

![Payment Reflection on Dashboard](https://1213756405-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50heLzgCJjTxyILKBC%2F-M5LCwTf234Q2VWWoeIX%2F-M5LELFRJFrzKCVWfXHk%2FPayPalTransaction.png?alt=media\&token=36a26358-7a5d-4c1f-9f37-c835e5cdbe3f)

**Note:** We have mentioned all basic steps which are necessary for flutter application.How to add **merchantID** for PayPal and **PublishKey** for Stripe.

### 3) RazorPay Integrations

* Before using Razorpay you must have to log in with Razorpay account.&#x20;

[Razorpay Account](https://dashboard.razorpay.com/app/dashboard)

* Copy Razorpay key id and pest in project.

![Replace Key Id Inside Constant file.](https://1213756405-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50heLzgCJjTxyILKBC%2F-ME2KlnDpjyxYRmgnKjo%2F-ME2OdZvwLwJ14tlNI4m%2FScreenshot%202020-08-06%20at%204.19.39%20PM.png?alt=media\&token=5d4826a1-a03b-4d74-aa0d-fd9b9aa68849)
