back4app.com
Android App With Stripe Payment
Android App With Stripe Payment
• In this Tutorial, we will create a ONE CLICK PURCHASE BUTTON with Stripe
Payment.
• To View Whole Project Code:
• https://github.com/dominwong4/Back4app-Stripe-Android-Tutorial
• You can read the original publication on:
• http://docs.back4app.com/docs/integrations/android-app-with-stripe-
payment/
Android App With Stripe Payment
Step 1: Setup Dashboard
• go to Your Parse Dashboard and
• create a Class : Item
• insert the following columns:
• ItemName
• Price
• quantityAvailable
• insert a sample item record
• ItemName: test
• price: 10
• quantityAvailable: 10
Android App With Stripe Payment
• create a Class : Order
• insert the following colums:
• Name
• Email
• Address
• Zip
• city_state
• Item
• Size
• fulfilled : Boolean
• charged : Boolean
• stripePaymentId
Step 2: Get Stripe API Key
• Create an account and login
• Go to this link: https://manage.stripe.com/account/apikeys
• if it does not work follow below instruction.
Step 2: Get Stripe API Key
• Go to Account Settings -> API Key
Step 3: Creat Cloud Code for Stripe Payment
• https://github.com/dominwong4/Back4app-Stripe-Android-
Tutorial/blob/master/CloudCode/main.js
• main.js (replace Stripe.initialize to your secret key)
• Click here to view how to upload your CloudCode
Step 4: Create your Android Client Application
1. add parse and stripe package to your project
• go to build.gradle and add following code:
• and then click Sync now
• then go to AndroidManifest.xml
Step 4: Create your Android Client
2. To implement Stripe Payment, the follow is the mandatory functions are
needed.
• View Whole Code:
• https://github.com/dominwong4/Back4app-Stripe-Android
• Tutorial/blob/master/app/src/main/java/dominwong4/scm/back4app_stripe
_android_tutorial/MainActivity.java
Step 4: Create your Android Client
• Above the onCreate()
Step 4: Create your Android Client
• Inside onCreate()
Step 4: Create your Android Client
• For the Purchasing main function
Step 4: Create your Android Client
• For the Purchasing main function
Step 5: Test
• If the things going well, there are few things can be judged.
1. the Stock is decreased
Step 5: Test
2. the order can be found at Class:Order
3. the charged -> true and stripePaymentId != undefined at Class:Order
Step 5: Test
4. Stripe Dashboard has transaction records.

More Related Content

PDF
MoodLocator HwT
PDF
How to integrate a subscription form with WordPress using a free plugin?
PPTX
Let's Build an Angular App!
PPTX
Creating custom Validators on Reactive Forms using Angular 6
PDF
Trailblazer Introduction by Nick Sutterer
PDF
"Ruby meets Event Sourcing" by Anton Paisov
PPT
ASP.NET Session 6
PPTX
Generic forms
MoodLocator HwT
How to integrate a subscription form with WordPress using a free plugin?
Let's Build an Angular App!
Creating custom Validators on Reactive Forms using Angular 6
Trailblazer Introduction by Nick Sutterer
"Ruby meets Event Sourcing" by Anton Paisov
ASP.NET Session 6
Generic forms

What's hot (20)

PPTX
Creating and Deploying a Bot Service Using the Bot Framework and Visual Studio
PPT
ASP.NET Session 5
ODP
Joomla VirtueMart Amazon Affiliate
PPTX
Wix tutorial
PDF
Techical Workflow for a Startup
PDF
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
PDF
Skillshare conclusion-chapter-4
PPT
2310 b 04
PDF
JWC 2015 - Mobile apps development for Joomla!
PDF
Integrating consumers IoT devices into Business Workflow
ODP
BigCommerce AliExpress Dropshipping
PPT
Google Website Optimizer API integration with Motivity
PPTX
Integration of plagiarism checker in odoo
PPTX
Angularjs Live Project
PPTX
Google app engine setup
PDF
Lean Quality & Engineering
PDF
Google Checkout with Ruby on Rails
PPTX
b4usolution_Appium Mobile Automation Testing Made Awesome
ODP
REST API for Joomla
PDF
How to use Salesforce Workbench like a Pro
Creating and Deploying a Bot Service Using the Bot Framework and Visual Studio
ASP.NET Session 5
Joomla VirtueMart Amazon Affiliate
Wix tutorial
Techical Workflow for a Startup
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Skillshare conclusion-chapter-4
2310 b 04
JWC 2015 - Mobile apps development for Joomla!
Integrating consumers IoT devices into Business Workflow
BigCommerce AliExpress Dropshipping
Google Website Optimizer API integration with Motivity
Integration of plagiarism checker in odoo
Angularjs Live Project
Google app engine setup
Lean Quality & Engineering
Google Checkout with Ruby on Rails
b4usolution_Appium Mobile Automation Testing Made Awesome
REST API for Joomla
How to use Salesforce Workbench like a Pro
Ad

Similar to Android app with stripe payment (8)

PDF
Pay and Get Paid: How To Integrate Stripe Into Your App
PDF
Payments in Mobile Apps
PDF
Accepting payments using Stripe and Elixir
PDF
Getting started with Stripe
PDF
Stripe Integration With MuleSoft
PDF
How to Implement Stripe Get a Complete Insight!.docx.pdf
PDF
Testing In App Billing
PDF
Paymill vs Stripe
Pay and Get Paid: How To Integrate Stripe Into Your App
Payments in Mobile Apps
Accepting payments using Stripe and Elixir
Getting started with Stripe
Stripe Integration With MuleSoft
How to Implement Stripe Get a Complete Insight!.docx.pdf
Testing In App Billing
Paymill vs Stripe
Ad

Recently uploaded (20)

PDF
Five Habits of High-Impact Board Members
PPTX
Modernising the Digital Integration Hub
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
The various Industrial Revolutions .pptx
PDF
CloudStack 4.21: First Look Webinar slides
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
Configure Apache Mutual Authentication
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PPT
What is a Computer? Input Devices /output devices
PPT
Geologic Time for studying geology for geologist
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PPTX
2018-HIPAA-Renewal-Training for executives
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Five Habits of High-Impact Board Members
Modernising the Digital Integration Hub
Taming the Chaos: How to Turn Unstructured Data into Decisions
The various Industrial Revolutions .pptx
CloudStack 4.21: First Look Webinar slides
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
1 - Historical Antecedents, Social Consideration.pdf
Configure Apache Mutual Authentication
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
The influence of sentiment analysis in enhancing early warning system model f...
What is a Computer? Input Devices /output devices
Geologic Time for studying geology for geologist
Custom Battery Pack Design Considerations for Performance and Safety
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
2018-HIPAA-Renewal-Training for executives
Getting started with AI Agents and Multi-Agent Systems
Microsoft Excel 365/2024 Beginner's training
Developing a website for English-speaking practice to English as a foreign la...
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION

Android app with stripe payment

  • 2. Android App With Stripe Payment • In this Tutorial, we will create a ONE CLICK PURCHASE BUTTON with Stripe Payment. • To View Whole Project Code: • https://github.com/dominwong4/Back4app-Stripe-Android-Tutorial • You can read the original publication on: • http://docs.back4app.com/docs/integrations/android-app-with-stripe- payment/
  • 3. Android App With Stripe Payment
  • 4. Step 1: Setup Dashboard • go to Your Parse Dashboard and • create a Class : Item • insert the following columns: • ItemName • Price • quantityAvailable • insert a sample item record • ItemName: test • price: 10 • quantityAvailable: 10
  • 5. Android App With Stripe Payment • create a Class : Order • insert the following colums: • Name • Email • Address • Zip • city_state • Item • Size • fulfilled : Boolean • charged : Boolean • stripePaymentId
  • 6. Step 2: Get Stripe API Key • Create an account and login • Go to this link: https://manage.stripe.com/account/apikeys • if it does not work follow below instruction.
  • 7. Step 2: Get Stripe API Key • Go to Account Settings -> API Key
  • 8. Step 3: Creat Cloud Code for Stripe Payment • https://github.com/dominwong4/Back4app-Stripe-Android- Tutorial/blob/master/CloudCode/main.js • main.js (replace Stripe.initialize to your secret key) • Click here to view how to upload your CloudCode
  • 9. Step 4: Create your Android Client Application 1. add parse and stripe package to your project • go to build.gradle and add following code: • and then click Sync now • then go to AndroidManifest.xml
  • 10. Step 4: Create your Android Client 2. To implement Stripe Payment, the follow is the mandatory functions are needed. • View Whole Code: • https://github.com/dominwong4/Back4app-Stripe-Android • Tutorial/blob/master/app/src/main/java/dominwong4/scm/back4app_stripe _android_tutorial/MainActivity.java
  • 11. Step 4: Create your Android Client • Above the onCreate()
  • 12. Step 4: Create your Android Client • Inside onCreate()
  • 13. Step 4: Create your Android Client • For the Purchasing main function
  • 14. Step 4: Create your Android Client • For the Purchasing main function
  • 15. Step 5: Test • If the things going well, there are few things can be judged. 1. the Stock is decreased
  • 16. Step 5: Test 2. the order can be found at Class:Order 3. the charged -> true and stripePaymentId != undefined at Class:Order
  • 17. Step 5: Test 4. Stripe Dashboard has transaction records.

Editor's Notes