• Stars
    star
    216
  • Rank 178,144 (Top 4 %)
  • Language
    Kotlin
  • License
    Other
  • Created over 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Reference Android code integrating TransferWise's services into a (Demo) Bank App

Bank Integrations Reference Implementation (Android)

The reference implementation for designing the international payments experience with the TransferWise API.

This implementation is based on the following documents:

Have a look at Bank Integrations Reference Implementation (Backend) for a reference backend implementation.

Overview

The reference application consists of three main modules:

  • app module: simulates a demo banking application and doesn't contain any TransferWise reference code
  • transferwise module: implementation of all code and screens to integrate the TransferWise for Banks API
  • dynamicform module: reusable library that renders dynamic forms returned by the TransferWise for Banks API

App module

This module doesn't contain any TransferWise reference code and shouldn't be reused.

A very basic module that simulates a bank application and integrates the TransferWise component.

 

Learn more

πŸ‘‰ Learn more about the App module.

TransferWise module

This module can be copied to bootstrap your integration of the TransferWise for Banks API. Note that only the full flow can easily be reused, not the different steps independently.

This module represents the reference implementation of the TransferWise for Banks API and contains all screens to handle an international payment flow.

Navigation graph

Learn more

πŸ‘‰ Learn more about the TransferWise module and its architectural choices.

Dynamic forms module

This module can reused to render dynamic forms returned by the TransferWise for Banks API. While it is fully tested and has a simple, generic API, its interface needs more polish to distribute it as a Maven artifact (e.g. thread safety, review contracts,...).

Some endpoints in the TransferWise API return a dynamic UI that needs to be rendered to the user.

These endpoints are:

Rendering such a dynamic UI is quite challenging and therefore, the reference implementation contains a separate module dynamicforms that handles all that complexity for you.

Learn more

πŸ‘‰ Learn more about the Dynamic forms module and how to integrate it.

Development setup

The banks reference requires Android Studio version 3.6 or higher. The latest version can be downloaded from here.

This project uses the Gradle build system:

  • To build this project, use ./gradlew assembleDebug
  • To run all unit tests, use ./gradlew testDebugUnitTest

For more resources on learning Android development, visit the Developer Guides at developer.android.com.

Getting started

The banking reference implementation can be tested both offline and online.

Offline

Checkout the source code and install the application on an Android device. Make sure to check the "Enable offline demo mode" toggle and you can go through most of the flow without needing to set up an instance of the reference backend.

Limitations:

  • All requests will be simulated to be successful, so you won't see any backend failures
  • The simulated customer already has a TransferWise account connected, so the anonymous quote (step 2) and sign up flow (steps 3) are skipped
  • All server responses are static (e.g. entering a different quote amount won't change the receiving amount)

Online

Checkout the source code and provide your own values of the following templated variables (found here)

  • DEFAULT_SERVER_URL -> where the Bank Integrations Reference Implementation (Backend) is running
  • loginUrl -> the reference example is pointing to TransferWise's Sandbox API. Change this to our production environment before making the code available to customers.
  • LOGIN_CLIENT_ID -> unique Id identifying your product (Please contact [email protected] to get started.)

Code style

This project uses ktlint, provided via the spotless gradle plugin.

Please run ./gradlew spotlessApply before merging pull requests to format all code and apply the appropriate copyright headers.

License

Copyright 2019,2020 TransferWise Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

pipelinewise

Data Pipeline Framework using the singer.io spec
Python
600
star
2

sequence-layout

A vertical sequence UI component for Android
Kotlin
475
star
3

wise-pizza

A library to find and visualise the most interesting slices in multidimensional data
Jupyter Notebook
89
star
4

tw-tasks-executor

Java
70
star
5

idempotence4j

Lightweight library for handling idempotent actions
Java
54
star
6

neptune-web

Wise Web Design System
JavaScript
54
star
7

pipelinewise-target-snowflake

Singer.io Target for Snowflake - PipelineWise compatible
Python
51
star
8

public-api-postman-collection

A Postman collection for exploring and testing the TransferWise public API
41
star
9

prometheus-envoy-dashboards

40
star
10

pipelinewise-tap-postgres

Singer.io Tap for PostgreSQL - PipelineWise compatible
Python
38
star
11

ng-browser-info

AngularJS service that gives you a collection of methods for knowing more about your client browser
JavaScript
37
star
12

actions-next-bundle-analyzer

Github Action that analyses page bundle sizes from a Next.js build
TypeScript
24
star
13

banks-reference-backend

Reference Backend code integrating TransferWise's services for a (Demo) Bank App
Java
22
star
14

pipelinewise-target-postgres

Singer.io Target for PostgreSQL - PipelineWise compatible
Python
20
star
15

pipelinewise-transform-field

Singer.io transformation component between Taps and Targets - PipelineWise compatible
Python
19
star
16

pipelinewise-tap-mysql

Singer.io Tap for MySQL - PipelineWise compatible
Python
16
star
17

neural-lifetimes

User behavior prediction from event data.
Python
15
star
18

openbanking-client

Java client for using the UK Open Banking API
Java
15
star
19

pipelinewise-target-s3-csv

Singer.io Target for CSV on S3 - PipelineWise compatible
Python
15
star
20

digital-signatures-examples

Go
14
star
21

pipelinewise-target-redshift

Singer.io Target for Amazon Redshift - PipelineWise compatible
Python
12
star
22

formatting

VanillaJS library for formatting different things.
TypeScript
12
star
23

tw-tkms

Java
8
star
24

pipelinewise-singer-python

Writes the Singer format from Python https://singer.io - Pipelinewise compatible
Python
8
star
25

cloudflare-prometheus-exporter

Prometheus exporter powered by Cloudflare GraphQL API.
Python
7
star
26

public-widgets

Wise Public Widgets
7
star
27

pipelinewise-tap-s3-csv

Singer.io Tap for CSV files on S3 - PipelineWise compatible
Python
7
star
28

pipelinewise-tap-kafka

Singer.io Tap for Kafka - PipelineWise compatible
Python
7
star
29

oomie

Maps system OOM messages to Kubernetes pods, emitting k8s events.
Go
7
star
30

url-locale

URL localisation
Java
6
star
31

cicada

Cicada scheduler
Python
5
star
32

payment-components

Angular components (directive-controller-view-styles bundles as it is Angular 1) for payment steps in TransferWise products.
CSS
5
star
33

pipelinewise-tap-mongodb

Singer.io Tap for MongoDB - PipelineWise compatible
Python
5
star
34

spiffe-kafka-talk

Resources for Levani and Jon's talk about SPIFFE and Kafka
HTML
5
star
35

pipelinewise-tap-snowflake

Singer.io Tap for Snowflake - PipelineWise compatible
Python
5
star
36

webpack-translations-plugin

JavaScript
5
star
37

release-to-github-with-changelog

JavaScript
4
star
38

tw-graceful-shutdown

Graceful Shutdown System.
Java
4
star
39

historic-rates-line-chart

JavaScript
3
star
40

wise-platform-samples

Code samples to get started with common Wise API use cases
TypeScript
3
star
41

tw-sketch-library

Sketch library of TW UI components for use with Invision's craft sketch plugin
3
star
42

pipelinewise-tap-google-analytics

Singer.io Tap for Google Analytics - PipelineWise compatible
Python
3
star
43

spire-k8s-registrar

Go
3
star
44

acorn

mission days 2021
Java
3
star
45

actions-pr-checker

Github Action to check PR title/description/labels.
Shell
3
star
46

tw-experimentation

AB testing tool
Jupyter Notebook
3
star
47

interview

Java
2
star
48

crypto

Crypto helper modules
Go
2
star
49

mitosis

A/B split filter
Groovy
2
star
50

hisel

Feature selection tool based on Hilbert-Schmidt Independence Criterion
Jupyter Notebook
2
star
51

tw-context

Java
2
star
52

wise-envoy-xds

Wise Envoy xDS
Java
2
star
53

iconfont

TransferWise IconFont
HTML
1
star
54

terra

A minimalistic library for object hydration. Useful for data to object reconstruction mechanics.
Java
1
star
55

cable

Simple and minimalistic url rewriter
Java
1
star
56

tw_bootcamp_2019

Take home exercise
Java
1
star
57

.github

Default community health files for TransferWise GitHub organization
1
star
58

tw-challenge-february-2015

Template repository for TW Challenge submissions
1
star
59

actions-slack-notify

Send slack notifications with easy
1
star
60

Numair_Repo

Repository containing codes by Numair Fazili
1
star
61

tw-leader-selector

Java
1
star
62

spring-cloud-tex

EnableConfigServer
Java
1
star
63

cache-algorithms-demo

Visually shows the behavior of different cache algorithms.
Java
1
star
64

tlint

Simple tool for linting of configurations files
Go
1
star
65

tw-challenge-2014

Base repository for TransferWise Challenge - please fork for each team and make repository public. Sharing is caring!
1
star
66

sanitize-branch-name

A Github action that determines the branch name, then sanitizes it of any forward slashes
1
star
67

digital-signatures

Java
1
star
68

FloatingPlaceholderTextField

Yet another "float label pattern" component written in Swift
Swift
1
star
69

tw-curator

Auto-configurator for Apache Curator
Java
1
star
70

send-money-pages-og-images

If a user shares one of the send-money pages on Facebook, the image that’s displayed in Facebook to represent the page is drawn from this repository.
JavaScript
1
star
71

legal-terms

This repository is intended to contain all T&C, ToS and other legal documents that can be required through a programatic endpoint for the use and information of partners and other third parties.
HTML
1
star