All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kushkipagos.android.Card.kt Maven / Gradle / Ivy

There is a newer version: 1.8.1
Show newest version
package com.kushkipagos.android

import org.json.JSONObject

class Card(private val name: String, private val number: String, private val cvv: String,
           private val expiryMonth: String, private val expiryYear: String) {

    fun toJsonObject(): JSONObject {
        return JSONObject()
                .put("name", name)
                .put("number", number)
                .put("expiryMonth", expiryMonth)
                .put("expiryYear", expiryYear)
                .put("cvv", cvv)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy