From f5fe9086d25c6164e152873f717ea4928ac2acbe Mon Sep 17 00:00:00 2001 From: Jeremy PELE Date: Fri, 15 Nov 2019 22:57:44 -0500 Subject: [PATCH] Fix STPAPIClient account not set on iOS (#89) * Update angular-demo to NS6 * Update demo to NS6 * Update android-sdk to 10.2.1 * Remove dev-typescript * migrate API * restore SDK 8.7.0 * Use androidx * fix namespace * fix app start * remove bundle and uglify * Restore 10.2.1 SDK * Fix merge issue * Update defs * Enable multidex * Bump minSDK version * Update {N} version on travis * Remove useless template * Rename _android var to _widget * fix commas * Implements createPaymentMethod * Add debug run * Add stripe3ds2 typings * Init PaymentConfiguration before CustomerSession * Fix requestPayment on Android * Cleans * Update typings * Update xcode and node versions * Fix frame is undefined * Add webpack configs to demos * confirmPaymentIntent uses StripePaymentIntentParams * Add create intent endpoint * Demo Intent * PaymentConfiguration.init called once * Update paymentIntent conf * Update ios podfile to 16.0.6 * Fix creditcard view * Fix paymentContextDidCreatePaymentResultCompletion * add debug demo.ios * Remove deleted createCardSources attribute * tmp paymentWithAuthent * Changelog * Remove unused import * Fix authentification context * Add status * Factorize StripeIntent * Clean component * cleans * Remove source and use payment method * remove source * Restore keys * Update SDK in README * Fix semicolons * trailing spaces * cleans * refactor stripeIntent for Android * Update README * tslint * Exclude platforms from tslint * Handle automatic and manual payment intent flows * fix tslint * Update README and Changelog * feedbacks * cleans * requiresCapture helper * Bump version * Fix ios contextMethod from modals * fix linter * Remove confirmPaymentIntent from index.d.ts * Fix keyUpdateListener.onKeyUpdateFailure error * Push last PR updates * Fix missing properties in index.d.ts * Ability to set the accountId * Update account in stripe api shared client * Bump version --- src/package.json | 2 +- src/stripe.ios.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index b1c335b..3cc9fcb 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-stripe", - "version": "6.1.0", + "version": "6.1.1", "description": "NativeScript Stripe sdk", "main": "stripe", "typings": "index.d.ts", diff --git a/src/stripe.ios.ts b/src/stripe.ios.ts index d411d9a..be693c6 100644 --- a/src/stripe.ios.ts +++ b/src/stripe.ios.ts @@ -9,6 +9,7 @@ export class Stripe { } setStripeAccount(accountId: string) { + STPAPIClient.sharedClient().stripeAccount = accountId; STPPaymentConfiguration.sharedConfiguration().stripeAccount = accountId; }