A ready-made pretty interactive card form that can be included in your Android app, making it easy to accept credit and debit cards.

Overview

ANDROID CARD FORM

A better Android credit/debit card interactive form without writing a lot of code

CardForm can be used as a simple credit card validation form with any credit card form and any payment API (without you changing anything). Everything is created with Android SDK - no picture is required.

Demo App

Installation

by Gradle:

       compile 'com.craftman.cardform:cardform:0.0.2'

Setup and usage

Use CardForm layout in your xml code:

<com.craftman.cardform.CardForm
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/card_form"/>`

In your java code

CardForm cardForm = (CardForm) findViewById(R.id.card_form);
cardForm.setPayBtnClickListner(new OnPayBtnClickListner() {
   @Override
   public void onClick(Card card) {
       //Your code here!! use card.getXXX() for get any card property
       //for instance card.getName();
   }
});

License

Copyright 2016 Shadaï ALI (craftman).

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.
You might also like...
Library for Android In-App Billing (Version 3+)
Library for Android In-App Billing (Version 3+)

Checkout (Android In-App Billing Library) Description Checkout is an implementation of Android In-App Billing API (v3+). Its main goal is to make inte

This App is sending Face capture data over network, built around the latest Android Arcore SDK.
This App is sending Face capture data over network, built around the latest Android Arcore SDK.

AndroidArcoreFacesStreaming From any Android phone ArCore compatible, using this app will send over TCP 5680 bytes messages: The first 5616 bytes is a

How to Integrate SAWO SDK to an Android app

How to Integrate SAWO SDK to an Android app Add following line to root build.gradle repositories block maven { url 'https://jitpack.io' } Add this to

A very simple way to implement In App Purchases on Android.
A very simple way to implement In App Purchases on Android.

The Google-developed Android In App Purchases library can seem quite confusing and too much code to do something as simple as making in-app purchases

The client app for Android

handl-service-provider-application “Service Booking Platform ” is an advanced pl

Android SDK for eyeson video service incl. demo app

eyeson Android SDK Android SDK for eyeson video service incl. demo app Prerequisites A webservice to host and maintain eyeson meetings is required. Th

Free forever Marketing SDK with a dashboard for in-app SplashScreen banners with built-in analytics
Free forever Marketing SDK with a dashboard for in-app SplashScreen banners with built-in analytics

AdaptivePlus Android SDK AdaptivePlus is the control center for marketing campaigns in mobile applications Requirements minSdkVersion 16 Examples prov

Powerful custom Android Camera with granular control over the video quality and filesize, restricting recordings to landscape only.
Powerful custom Android Camera with granular control over the video quality and filesize, restricting recordings to landscape only.

LandscapeVideoCamera Highly flexible Android Camera which offers granular control over the video quality and filesize, while restricting recordings to

SocialAuth repository which contains socialauth android version and samples
SocialAuth repository which contains socialauth android version and samples

SocialAuth Android is an Android version of popular SocialAuth Java library. Now you do not need to integrate multiple SDKs if you want to integrate y

Comments
  • setAmount not working

    setAmount not working

    I am using the following code to change the Amount displayed on the form but it always remain as $500.

    CardForm cardForm = (CardForm)findViewById(R.id.card_form);
            cardForm.setAmount("$6000");
            cardForm.setPayBtnClickListner(new OnPayBtnClickListner() {
                @Override
                public void onClick(Card card) {
                    Toast.makeText(getApplicationContext(),card.getNumber(),Toast.LENGTH_SHORT).show();
                }
            });
    
    opened by rahul260792 1
  • Getting and exception in using androidx!

    Getting and exception in using androidx!

    this is the error can you please help me!

    java.lang.RuntimeException: Unable to start activity ComponentInfo{Package name}: android.view.InflateException: Binary XML file line #31: Binary XML file line #31: Error inflating class com.example.mac.mycarapp.CreditCard.CardForm
    
    opened by franquicidad 0
Owner
Shadaï ALI
CTO at OPEN SI (opensi.co) & Co-founder at kkiapay.me
Shadaï ALI
High-quality Interactive Audio/Video Android SDK

High-quality Interactive Audio/Video Android SDK

LiteAVSDK 34 Jan 4, 2023
This SDK can be used to identify a user via passport or ID Card prove identity of user via Biometry comparing selfie and photo from chip of ID Doc

Verdi Mobile SDK This SDK can be used to identify a user via passport or Id Card. In this repository, you can find the library itself and the Sample a

null 5 Jan 3, 2022
Qiscus provide everything you need to power up your app with chats. And it's now made simple.

Introduction Qiscus Chat SDK (Software Development Kit) is a product provided by Qiscus that enables you to embed an in-app chat/chat feature in your

Qiscus - Multichannel Conversational Platform 197 Dec 27, 2022
Its measurement app made using kotlin with sceneform sdk by google

ARCORE MEASUREMENT This app is build using sceneform sdk for android using kotlin language It helps you measure the distance between multiple points i

Kashif Mehmood 39 Dec 9, 2022
Amazon S3 multipart file upload for Android, made simple

Simpl3r Amazon S3 multipart file upload for Android, made simple This library provides a simple high level Android API for robust and resumable multip

Jeff Gilfelt 182 Nov 15, 2022
Frogo SDK - SDK Core for Easy Development

SDK for anything your problem to make easier developing android apps

Frogobox 10 Dec 15, 2022
CodingChallenge: A simple SDK. Which can provide you information related to Start Wars APi

CodingChallenge CodingChallenge is a simple SDK. Which can provide you informati

Wajahat Hussain 1 Feb 18, 2022
Android Weather Library: android weather lib to develop weather based app fast and easily

WeatherLib Android weather lib is an android weather aggregator. The lib helps you getting weather data from the most importat weather provider. It su

Surviving with android (by Francesco Azzola) 641 Dec 23, 2022
A sample project of implementing Liveness Detection and Identity OCR on Android app using Kredibel Vision SDK

Vision Sample (Android) A sample project of implementing Liveness Detection and Identity OCR on Android app using Kredibel Vision SDK. You can checkou

null 10 Nov 27, 2022