Skip to content

Very Spacy Food - Android demo application build on top of VGS Collect SDK for securely collecting payment card data

License

Notifications You must be signed in to change notification settings

vgs-samples/very-spacy-food-android

Repository files navigation

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.

git@github.com: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

About

Very Spacy Food - Android demo application build on top of VGS Collect SDK for securely collecting payment card data

Topics

Resources

License

Stars

Watchers

Forks

Languages