File tree 1 file changed +4
-2
lines changed
packages/stripe_android/android/src/main/kotlin/com/reactnativestripesdk
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ class PaymentSheetFragment : Fragment() {
113
113
) else null
114
114
)
115
115
116
+ // Call ON_FRAGMENT_CREATED before ON_INIT_PAYMENT_SHEET
117
+ val intent = Intent (ON_FRAGMENT_CREATED )
118
+ localBroadcastManager.sendBroadcast(intent)
119
+
116
120
if (arguments?.getBoolean(" customFlow" ) == true ) {
117
121
flowController = PaymentSheet .FlowController .create(this , paymentOptionCallback, paymentResultCallback)
118
122
configureFlowController()
@@ -122,8 +126,6 @@ class PaymentSheetFragment : Fragment() {
122
126
localBroadcastManager.sendBroadcast(intent)
123
127
}
124
128
125
- val intent = Intent (ON_FRAGMENT_CREATED )
126
- localBroadcastManager.sendBroadcast(intent)
127
129
}
128
130
129
131
fun present () {
You can’t perform that action at this time.
0 commit comments