Skip to content

android-inheritx/Flutter_Payment_Stipe_Paypal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_payment_demo

A project for stripe and paypal payment gateway.

  • On checkout screen there are two options; pay with stripe and pay with paypal. Below are the steps to follow to test both payments.
  1. Stripe payment
  • put your stripe publishableKey in "pay_via_new_card.dart" and "existing-cards.dart"
  • In network_constants put your DYNAMIC_BASE_URL, means the domain which is setup by backend developer
  • You need help of backend developer to setup server side code and payement charge api mentioned in network_constans class.
  • Once all things get setup you can check the full flow of stripe payment.

2)Paypal payment

  • The whole flow will open in webview so you need to manage that way.
  • In PaypalServices class, you need to put clientId and secret of your paypal merchant account.
  • Then you can test with sandbox account and check for full flow.

Note: If you cannot complete payment, then use credit card generator link and use the card which is generated by this link https://developer.paypal.com/developer/creditCardGenerator/

Other useful links: https://developer.paypal.com/developer/accounts/

1591874885859

About

This is a repository to work with stripe and paypal payment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published