An open API service indexing awesome lists of open source software.

https://github.com/paymentwall/android-gamepay-sdk-core-ui

Design system and core UI elements for Android GamePaySDK
https://github.com/paymentwall/android-gamepay-sdk-core-ui

Last synced: 4 months ago
JSON representation

Design system and core UI elements for Android GamePaySDK

Awesome Lists containing this project

README

          

# GamePay CoreUI SDK

`gpcoreui` is an Android library providing reusable payment UI components and validation helpers. The code is written in Java with all classes prefixed by `GP` under the package `com.terminal3.gpcoreui`.

## Modules
- **gpcoreui** – library module containing the UI widgets and utilities.
- **app** – sample application demonstrating usage of the components.

## Installation
Include the module in your `settings.gradle` and add a dependency in your app module:

```gradle
implementation project(":gpcoreui")
```

The library targets `minSdk 24` and uses `AppCompat` for compatibility.

## Usage
Add the desired components in your XML layout. Example card form:

```xml

```

To build forms dynamically, use `GPDynamicForm`:

```java
GPDynamicForm form = findViewById(R.id.dynamicForm);
form.setOptions(serverOptions);
Map values = form.getValues();
// Or form.getAllValues() to include hidden fields
```

See [`docs/COMPONENTS.md`](docs/COMPONENTS.md) for an index of available widgets. Each component has its own document describing parameters and usage.

## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.