From 6f1847163c9224e2835c26ad8de929581ea5d565 Mon Sep 17 00:00:00 2001 From: Robert Gardner Date: Mon, 13 Apr 2020 13:14:32 -0700 Subject: [PATCH] Bump version --- CHANGELOG.md | 4 ++++ src/package.json | 2 +- src/stripe.android.ts | 4 ++-- src/stripe.ios.ts | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2911de..e61f6ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ Changelog +## 6.4.0 (2020, April 13) +### Fixes +- [(# 105)](https://github.com/triniwiz/nativescript-stripe/issues/105) `createSource` support. + ## 6.3.2 (2020, April 4) ### Fixes - [(# 103)](https://github.com/triniwiz/nativescript-stripe/issues/103) Android PaymentSession with Prefilled Address crashes diff --git a/src/package.json b/src/package.json index c9840fb..512df38 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-stripe", - "version": "6.3.2", + "version": "6.4.0", "description": "NativeScript Stripe sdk", "main": "stripe", "typings": "index.d.ts", diff --git a/src/stripe.android.ts b/src/stripe.android.ts index 5d64b32..2031743 100644 --- a/src/stripe.android.ts +++ b/src/stripe.android.ts @@ -1,5 +1,5 @@ -import * as utils from 'tns-core-modules/utils/utils'; import { android as androidApp } from "tns-core-modules/application"; +import * as utils from 'tns-core-modules/utils/utils'; import { CardBrand, CardCommon, CreditCardViewBase, PaymentMethodCommon, Source, StripePaymentIntentCommon, StripePaymentIntentStatus, Token } from './stripe.common'; export class Stripe { @@ -62,7 +62,7 @@ export class Stripe { try { this._stripe.createSource( - cardSourceParams, + cardSourceParams, new com.stripe.android.SourceCallback({ onSuccess: function (source: com.stripe.android.model.Source) { if (typeof cb === 'function') { diff --git a/src/stripe.ios.ts b/src/stripe.ios.ts index a270647..5f09304 100644 --- a/src/stripe.ios.ts +++ b/src/stripe.ios.ts @@ -42,7 +42,7 @@ export class Stripe { } return; } - + const sourceParams = STPSourceParams.cardParamsWithCard(card.native); const apiClient = STPAPIClient.sharedClient();