-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2006 from Adyen/feature/card-scanning-setup-scanner
[Card scanning] Setup scanner
- Loading branch information
Showing
4 changed files
with
156 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
public final class com/adyen/checkout/card/scanning/AdyenCardScanner { | ||
public fun <init> ()V | ||
public final fun getResult (Landroid/content/Intent;)Lcom/adyen/checkout/card/scanning/AdyenCardScannerResult; | ||
public final fun initialize (Landroid/content/Context;Lcom/adyen/checkout/core/Environment;)V | ||
public final fun isAvailable (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; | ||
public final fun startScanner (Landroid/app/Activity;I)V | ||
public final fun terminate ()V | ||
} | ||
|
||
public final class com/adyen/checkout/card/scanning/AdyenCardScannerResult { | ||
public fun <init> (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)V | ||
public final fun component1 ()Ljava/lang/String; | ||
public final fun component2 ()Ljava/lang/Integer; | ||
public final fun component3 ()Ljava/lang/Integer; | ||
public final fun copy (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)Lcom/adyen/checkout/card/scanning/AdyenCardScannerResult; | ||
public static synthetic fun copy$default (Lcom/adyen/checkout/card/scanning/AdyenCardScannerResult;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILjava/lang/Object;)Lcom/adyen/checkout/card/scanning/AdyenCardScannerResult; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getExpiryMonth ()Ljava/lang/Integer; | ||
public final fun getExpiryYear ()Ljava/lang/Integer; | ||
public final fun getPan ()Ljava/lang/String; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/adyen/checkout/card/scanning/BuildConfig { | ||
public static final field BUILD_TYPE Ljava/lang/String; | ||
public static final field CHECKOUT_VERSION Ljava/lang/String; | ||
public static final field DEBUG Z | ||
public static final field LIBRARY_PACKAGE_NAME Ljava/lang/String; | ||
public fun <init> ()V | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
card-scanning/src/main/java/com/adyen/checkout/card/scanning/AdyenCardScannerResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2025 Adyen N.V. | ||
* | ||
* This file is open source and available under the MIT license. See the LICENSE file for more info. | ||
* | ||
* Created by oscars on 13/2/2025. | ||
*/ | ||
|
||
package com.adyen.checkout.card.scanning | ||
|
||
data class AdyenCardScannerResult( | ||
val pan: String?, | ||
val expiryMonth: Int?, | ||
val expiryYear: Int?, | ||
) |