Giter Club home page Giter Club logo

very-spacy-food-android's Introduction

Very Spacy Food
VGS Collect Android SDK Showcase Application

Very Spacy Food is a food ordering demo application built with VGS Collect SDK for securely collecting credit card data.

Requirements

How to run it?

Step 1

Go to your VGS organization and establish Inbound connection. For this demo you can import pre-built route configuration:

  • Find the configuration.yaml file inside the app repository and download it.
  • Go to the Routes section on the Dashboard page and select the Inbound tab.
  • Press Manage button at the right corner and select Import YAML file.
  • Choose configuration.yaml file that you just downloaded and tap on Save button to save the route.

Now the data you sent with the VGS Collect SDK will be secured.

Step 2

Clone Very Spacy Food application repository.

[email protected]:vgs-samples/very-spacy-food-android.git

Step 3

Go to build.gradle and find the code:

buildConfigField "String", "VAULT_ID", "<VAULT_ID>"
buildConfigField "String", "BASE_URL", "<VGS_COLLECT_AND_PAY_SERVER_URL>"

Replace "<VAULT_ID>" with your vault id, "<VGS_COLLECT_AND_PAY_SERVER_URL>" with URL to your API for storing redacted payment data collection and revealing this data to a third-party payment services.

Rebuild Project.

Step 4

Run the application and try to order some Very Spacy Food.

"Add Credit Card Data" screen

You can use the following test card data to make the order:

  • Joe Business as a Cardholder Name;
  • 4111111111111111 as a Card Number;
  • 11/22 as an Expiration Date;
  • 123 as a Card Verification Code (CVC);

Press Save button. Now data should be submitted to VGS.
Go to the Logs tab on Dashboard, find request and secure a payload.
Instruction for this step you can find here.

"Checkout" screen

Press Checkout button. After successful response you may go to your Stripe dashboard and find your order.

Useful links

very-spacy-food-android's People

Contributors

dmytrodm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.