CredStore - performQuery - Error copying matching creds. Error=-25300 api.stripe.com iOS

Viewed 178

When I attempt to setup Customer's default payment source I am met with the following error in the console.

2021-05-26 01:12:54.957645-0400 appName[2274:787320] CredStore - performQuery - Error copying matching creds.  Error=-25300, query={
class = inet;
"m_Limit" = "m_LimitAll";
ptcl = htps;
"r_Attributes" = 1;
sdmn = Stripe;
srvr = "api.stripe.com";
sync = syna;
}
Setup failed status?

Bellow is a relevant function. it gets called when a payButton is pressed after filling out the relevant card details.

 @objc func pay() {
    
    print("pay func began executing")
    
    // Collect card details
    let cardParams = cardTextField.cardParams
    // Fill in any billing details...
    let billingDetails = STPPaymentMethodBillingDetails()

    // Create SetupIntent confirm parameters with the above
    let paymentMethodParams = STPPaymentMethodParams(card: cardParams, billingDetails: billingDetails, metadata: nil)
    let setupIntentParams = STPSetupIntentConfirmParams(clientSecret: setupIntentClientSecret!)
    setupIntentParams.paymentMethodParams = paymentMethodParams

    // ...continued in next step
    // Complete the setup
    let paymentHandler = STPPaymentHandler.shared()
    
    print(paymentMethodParams, "paymentHandler = STPPaymentHandler?", setupIntentClientSecret, "hcaca face", setupIntentParams)

    paymentHandler.confirmSetupIntent(setupIntentParams, with: self) { status, setupIntent, error in
        switch (status) {
        case .failed:
            // Setup failed
            print("Setup failed status?")
            
            break
        case .canceled:
            // Setup canceled
            print("Setup canceled status?")
            
            break
        case .succeeded:
            // Setup succeeded
            print("setup sucess!")
            break
        @unknown default:
            fatalError()
            break
        }
    }

}

I wonder if it could in some way be related to Firebase and how it interacts with Stripe?? Let me know if you need some other parts.

0 Answers
Related