Skip to content

GoogleChromeLabs/android-web-payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

android-web-payment

This is an Android payment app sample that works with Web PaymentRequest API.

  • SamplePay
    • An Android payment app
    • A web payment app (The implementation is empty; it can only delegate to the Android app)
  • SampleMerchant
    • A web merchant site

Test the Android payment App

  1. Download and install app-debug.apk
  2. Open the Chrome browser and navigate to https://sample-pay-ss.firebaseapp.com
  3. Click on "PAY" button.

SamplePay (Web)

The project can be deployed to Firebase Hosting.

  1. Install Firebase CLI.
  2. Create a new Firebase project.
  3. Edit SamplePay/.firebaserc and change the project ID to yours.
  4. Edit SamplePay/public/manifest.json and change the domain nams to yours. Also, change the fingerprint SHA256 hash to your SamplePay's app.
  5. Edit SamplePay/public/payment-manifest.json and change the domain name to yours.
  6. Edit SamplePay/firebase.json and change the domain name to yours.
  7. Run $ firebase deploy.

SamplePay (Android)

  1. Import the project path (SamplePay/) to Android Studio.
  2. Modify SamplePay/gradle.properties and change the domain name to yours.
  3. Run

SampleMerchant

The project can be deployed to Firebase Hosting.

  1. Install Firebase CLI.
  2. Create a new Firebase project.
  3. Edit SampleMerchant/.firebaserc and change the project ID to yours.
  4. Edit SampleMerchant/public/index.html and change the supportedMethods to your SamplePay's domain.
  5. Run $ firebase deploy.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published