Giter Club home page Giter Club logo

vtex-payment-test's Introduction

Testing Payments linking

App to let the instore app and instore payments apps to test their linking features.

Docs

See docs folder to know how to create an instore vtex payment app

Linking to your app

This app links to an app that accept the uri stone://payment?params (see the docs folder above to know how it works).

You can easily change the scheme from "stone" to your app's scheme by editing the render method of https://github.com/vtex/vtex-payment-test/blob/master/App.js

Linking back to this app

You can link back to this app with the URI:

vtex-payment-test://payment?params // for payment applinking vtex-payment-test://payment-reversal?params // for a refund applinking

Example of an payment app

You can see an Android payment example app here: https://github.com/vtex/payment-example-app

Development

Execute any make command on the terminal of your machine (normally works on Linux and Mac).

This is a React Native example App, on Makefile have helpers to how to setup and test (as you can see below). But you can also see React Native's documentation if you have any doubts on how to run it: https://facebook.github.io/react-native/docs/getting-started.html (the "Building Projects with Native Code" can be a good place to start)

Setup project

make setup (need node and npm installed on your machine)

Run on iOS simulator

make run (or make ios)

Run on iOS device

See Running on Device

Run on Android emulator / device via command line

make android

Run on Android emulator / device via Android Studio

make setup (if not already executed, remember: need node and npm installed on your machine)

make server (it starts react native packager to bundle javascript)

Open directory vtex-payment-test/android on Android Studio.

Run as a normal Android app.

Dismiss any initial red error (like bridge error or could not connect to local server), after the app initialize.

Shake the device to open developer options. Choose Dev Settings, then choose "Debug server host & port for device". Then insert the IP Address of the machine that you executed the make server command with the port 8081, example: 10.1.12.4:8081

If you want to make changes to javascript to change parameters on links, you can edit App.js file and then shake the device again and press "Reload".

vtex-payment-test's People

Contributors

guilhermebruzzi avatar darlenedms avatar lbebber avatar

Watchers

James Cloos avatar Davi Marcondes Moreira 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.