Skip to content

Commit

Permalink
Fix STPAPIClient account not set on iOS (#89)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jeremypele authored and RobertGardner committed Nov 16, 2019
1 parent d87f593 commit f5fe908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/stripe.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export class Stripe {
}

setStripeAccount(accountId: string) {
STPAPIClient.sharedClient().stripeAccount = accountId;
STPPaymentConfiguration.sharedConfiguration().stripeAccount = accountId;
}

Expand Down

0 comments on commit f5fe908

Please sign in to comment.