Skip to content

Commit

Permalink
fix(android): duplicate init configuration (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten-stripe committed May 26, 2021
1 parent cce9171 commit 108f056
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,11 @@ class StripeSdkModule(reactContext: ReactApplicationContext, cardFieldManager: S
@ReactMethod
fun initPaymentSheet(params: ReadableMap, promise: Promise) {
val activity = currentActivity as AppCompatActivity

if (activity == null) {
promise.reject("Fail", "Activity doesn't exist")
return
}
val customFlow = getBooleanOrNull(params, "customFlow") ?: false

PaymentConfiguration.init(reactApplicationContext, publishableKey)

val customerId = getValOr(params, "customerId")
val customerEphemeralKeySecret = getValOr(params, "customerEphemeralKeySecret")
val paymentIntentClientSecret = getValOr(params, "paymentIntentClientSecret")
Expand Down

0 comments on commit 108f056

Please sign in to comment.