title: Swift - Stripe Connect StripeAccount
body: <p>I integrate Stripe Connect in my Android &amp; iOS App. All is ok for my Android app.</p>
  <p>For iOS, i'm stuck with this error :</p>
  <p>Payment failed: Error Domain=com.stripe.lib Code=50 &quot;There was an unexpected error -- try again in a few seconds&quot; UserInfo={com.stripe.lib:StripeErrorCodeKey=resource_missing, NSLocalizedDescription=There was an unexpected error -- try again in a few seconds, com.stripe.lib:StripeErrorTypeKey=invalid_request_error, com.stripe.lib:ErrorParameterKey=intent, com.stripe.lib:ErrorMessageKey=Ressource payment_intent inexistante : 'pi_3LNYx8QQGw6fEJWk06RcezpX'}</p>
  <p>Here is my Swift code :</p>
  <pre><code>                    let customerId = json[&quot;customer&quot;] as! String
                      let customerEphemeralKeySecret = json[&quot;ephemeralKey&quot;] as! String
                      let paymentIntentClientSecret = json[&quot;paymentIntent&quot;] as! String
                      let paymentIntentId = json[&quot;paymentIntent_id&quot;] as! String
                      let publishableKey = json[&quot;publishableKey&quot;] as! String
                      let stripe_account_connect = json[&quot;stripe_account_connect&quot;] as! String
  
                      STPAPIClient.shared.publishableKey = publishableKey
                      StripeAPI.defaultPublishableKey = publishableKey
                  
                      var configuration = PaymentSheet.Configuration()
                      configuration.merchantDisplayName = &quot;Example&quot;
                      configuration.customer = .init(id: customerId, ephemeralKeySecret: customerEphemeralKeySecret)
                      configuration.allowsDelayedPaymentMethods = false
                  
                      print(&quot;connect : \(stripe_account_connect)&quot;)
                  
                      if( stripe_account_connect != &quot;&quot; ) {
                          print(&quot;ok config account&quot;)
                          
                          STPPaymentConfiguration.shared.stripeAccount = stripe_account_connect
                          STPAPIClient.shared.stripeAccount = stripe_account_connect
                      }
                      
                      let paymentSheet = PaymentSheet(paymentIntentClientSecret: paymentIntentClientSecret, configuration: configuration)```
  </code></pre>
  <p>I think the difference with Android is this part :</p>
  <pre><code>if( !result.get(&quot;stripe_account_connect&quot;).getAsString().equals(&quot;&quot;) ) {
                                      Log.d(&quot;aaaaaa&quot;, &quot;stripe_account_connect : &quot;+result.get(&quot;stripe_account_connect&quot;).getAsString());
                                      PaymentConfiguration.init(getApplicationContext(), result.get(&quot;publishableKey&quot;).getAsString(), result.get(&quot;stripe_account_connect&quot;).getAsString());
                                  } else {
                                      PaymentConfiguration.init(getApplicationContext(), result.get(&quot;publishableKey&quot;).getAsString());
                                  }
  </code></pre>
  <p>Hope someone have a solution for this error, i found nothing on the documentation ...</p>
  <p>Thanks!</p>