{"id":18602463,"url":"https://github.com/codeurzebs/campay-android-sdk","last_synced_at":"2025-05-16T17:34:44.938Z","repository":{"id":198750414,"uuid":"701469574","full_name":"codeurzebs/Campay-Android-SDK","owner":"codeurzebs","description":"Official android sdk for CamPay payment platform","archived":false,"fork":false,"pushed_at":"2023-10-06T17:49:21.000Z","size":1198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T01:40:17.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeurzebs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-06T17:46:44.000Z","updated_at":"2023-10-06T17:49:26.000Z","dependencies_parsed_at":"2023-10-11T22:33:41.148Z","dependency_job_id":null,"html_url":"https://github.com/codeurzebs/Campay-Android-SDK","commit_stats":null,"previous_names":["codeurzebs/campay-android-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeurzebs%2FCampay-Android-SDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeurzebs%2FCampay-Android-SDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeurzebs%2FCampay-Android-SDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeurzebs%2FCampay-Android-SDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeurzebs","download_url":"https://codeload.github.com/codeurzebs/Campay-Android-SDK/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576985,"owners_count":22094495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T02:11:27.459Z","updated_at":"2025-05-16T17:34:44.916Z","avatar_url":"https://github.com/codeurzebs.png","language":"Java","readme":"# [CamPay](https://www.campay.net/) Android SDK\n\n![Campay Art](./art/campay.png)\n\n![Android CI](https://github.com/CamPay/android-sdk/workflows/Android%20CI/badge.svg)\n[![](https://jitpack.io/v/CamPay/android-sdk.svg)](https://jitpack.io/#CamPay/android-sdk)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=CamPay_android-sdk\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=CamPay_android-sdk)\n\n## Summary\n\n  - [Getting Started](#getting-started)\n  - [Running the samples](#running-the-samples)\n  - [Deployment](#deployment)\n  - [Built With](#built-with)\n\n## Getting Started\n\nThese instructions will get you started with the CamPay SDK for development and testing purposes. See deployment\nfor notes on how to deploy the project on a live system.\n\n### Prerequisites\n\nWhat things you need to install the software and how to install them\n - An account on [CamPay](https://www.campay.net/) platform\n - An application on the [CamPay platform](https://demo.campay.net/en/users/signup/).\n - Credentials for connecting to the CamPay platform\n\n### Installing\n\nA step by step series of examples that tell you how to get a development\nenv running\n\n- Check out the available versions on [Jitpack](https://jitpack.io/#CamPay/android-sdk/)\n\n-  Add the JitPack repository to your build file\n   ```groovy\n       allprojects {\n        repositories {\n          ...\n          maven { url 'https://jitpack.io' }\n        }\n      }\n   ```\n- Add the dependency\n```groovy\n    implementation 'com.github.CamPay.android-sdk:android-sdk:latest.release'\n    // Peer dependency\n    implementation 'io.reactivex.rxjava3:rxjava:3.0.0'\n```\n- Add the internet permission to your application\n```xml\n    \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n```\n\n## Running the samples\n\nTo view an extensive list of samples, clone this project and run the app module. \n\n  - Initialize the library with credentials. \n  ```kotlin\n        CamPay.init(\n            \"\u003cusername\u003e\",\n            \"\u003cpassword\u003e\",\n            CamPay.Environment.DEV // environment\n        )\n  ```\n\n  - Get an instance of the library from anywhere in your application and run the various operations. \n  ```kotlin\n       val camPay = CamPay.getInstance()\n\n        camPay.collect(\n            CollectionRequest.CollectionRequestBuilder\n                .aCollectionRequest()\n                .withAmount(\"amount\")\n                .withFrom(\"237XXXXXXXXX\")\n                .withDescription(\"some reason\")\n                .withExternalReference(UUID.randomUUID().toString())\n                .withCurrency(\"XAF\")\n                .build()\n        ).delay(1, TimeUnit.MINUTES) // delay for a minute before checking the transaction status\n            .switchMap { collectResponse -\u003e\n                println(collectResponse)\n                return@switchMap camPay.transactionStatus(collectResponse.reference) //  check the transaction status\n            }.subscribe { transactionStatusResponse -\u003e\n                println(transactionStatusResponse)\n            }\n  ```\n\n\n  - Get application balance. \n  ```kotlin\n        val camPay = CamPay.getInstance()\n\n        camPay.applicationBalance()\n            .subscribe { applicationBalanceResponse -\u003e\n                println(applicationBalanceResponse)\n            }\n  ```\n\n\n  - Place a withdrawal request\n\n  \u003e Please enable API withdrawal under app settings before trying this request\n  \n  ```kotlin\n        val camPay = CamPay.getInstance()\n\n        camPay.withdraw(\n            WithdrawRequest.WithdrawRequestBuilder\n                .aWithdrawRequest()\n                .withTo(\"237XXXXXXXXX\")\n                .withExternalReference(UUID.randomUUID().toString())\n                .withDescription(\"some reason\")\n                .withAmount(\"100\")\n                .build()\n        )\n            .subscribe { withdrawalResponse -\u003e\n                println(withdrawalResponse)\n            }\n  ```\n\n## Deployment\n\nAdd additional notes about how to deploy this on a live system\nChange the environment of the library introduction to PROD\n\n  ```kotlin\n        CamPay.init(\n            \"\u003cusername\u003e\",\n            \"\u003cpassword\u003e\",\n            CamPay.Environment.PROD // environment\n        )\n  ```\n\n## Built With\n\n  - [Retrofit](https://github.com/square/retrofit/) - A type-safe HTTP client for Android and Java.\n  - [RxJava3](https://github.com/ReactiveX/RxJava/tree/3.x) - Reactive Extensions for the JVM\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeurzebs%2Fcampay-android-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeurzebs%2Fcampay-android-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeurzebs%2Fcampay-android-sdk/lists"}