Skip to content

Commit

Permalink
Merge pull request #15 from carlosanjos/master
Browse files Browse the repository at this point in the history
Updating Stripe SDK on Android platforms
  • Loading branch information
triniwiz authored Aug 7, 2018
2 parents 4279ca9 + ec0a27c commit 7305696
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion platforms/android/include.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ android {
}

dependencies {
compile 'com.stripe:stripe-android:3.0.1'
compile 'com.stripe:stripe-android:8.0.0'
}
6 changes: 3 additions & 3 deletions src/android/card.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export declare class Card {
private _card;
constructor(cardNumber: string, cardExpMonth: any, cardExpYear: any, cardCVC: string);
constructor(cardNumber: string, cardExpMonth: number, cardExpYear: number, cardCVC: string);
readonly card: any;
validateNumber(): boolean;
validateCVC(): boolean;
Expand All @@ -9,8 +9,8 @@ export declare class Card {
validateExpYear(): boolean;
readonly number: string;
readonly cvc: string;
readonly expMonth: any;
readonly expYear: any;
readonly expMonth: number;
readonly expYear: number;
name: string;
addressLine1: string;
addressLine2: string;
Expand Down
6 changes: 3 additions & 3 deletions src/android/card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare const com, java;
export class Card {
private _card: any /*com.stripe.android.model.Card*/;
constructor(cardNumber: string, cardExpMonth: any, cardExpYear: any, cardCVC: string) {
constructor(cardNumber: string, cardExpMonth: number, cardExpYear: number, cardCVC: string) {
this._card = new com.stripe.android.model.Card(
new java.lang.String(cardNumber),
new java.lang.Integer(cardExpMonth.intValue()),
Expand Down Expand Up @@ -33,10 +33,10 @@ export class Card {
get cvc(): string {
return this._card.getCVC();
}
get expMonth(): any {
get expMonth(): number {
return this._card.getExpMonth();
}
get expYear(): any {
get expYear(): number {
return this._card.getExpYear();
}
get name(): string {
Expand Down

0 comments on commit 7305696

Please sign in to comment.