-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SourceParams creation method for CardParams (#2674)
- Loading branch information
1 parent
8dbe6fd
commit e4bb229
Showing
5 changed files
with
124 additions
and
64 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
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
16 changes: 16 additions & 0 deletions
16
stripe/src/test/java/com/stripe/android/model/CardParamsFixture.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,16 @@ | ||
package com.stripe.android.model | ||
|
||
import com.stripe.android.CardNumberFixtures | ||
|
||
internal object CardParamsFixture { | ||
val DEFAULT = CardParams( | ||
number = CardNumberFixtures.VISA_NO_SPACES, | ||
expMonth = 12, | ||
expYear = 2025, | ||
cvc = "123", | ||
name = "Jenny Rosen", | ||
address = AddressFixtures.ADDRESS, | ||
currency = "usd", | ||
metadata = mapOf("fruit" to "orange") | ||
) | ||
} |
16 changes: 2 additions & 14 deletions
16
stripe/src/test/java/com/stripe/android/model/CardParamsTest.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
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