#mahi_96911

1 messages · Page 1 of 1 (latest)

boreal yewBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

dense flax
#

in which part does it give you this error?

unkempt parcel
#

let paymentHandler = STPPaymentHandler.shared()
paymentHandler.handleNextAction(forPayment: main , with: self, returnURL: nil) { status, paymentIntent, handleActionError in
switch (status) {

dense flax
#

Can you screenshot? Is it handleActionError?

unkempt parcel
#

this function show secure page on that time got the error

unkempt parcel
#

let paymentHandler = STPPaymentHandler.shared()
paymentHandler.handleNextAction(forPayment: main , with: self, returnURL: nil) { status, paymentIntent, handleActionError in
switch (status) {
case .failed:
self.showToast(message: handleActionError?.localizedDescription ?? "")
break
case .canceled:
self.showToast(message: "We are unable to authenticate your payment method.")
break
case .succeeded:
print(paymentIntent?.stripeId)
self.callPaymentApi(intentID: paymentIntent?.stripeId ?? "")

            break
        @unknown default:
            fatalError()
            break
        }
    }
dense flax
#

Sorry I didn't get the last part. By "loop" do you mean an infinite loop, or just the switch(status) block?

unkempt parcel
#

switch

dense flax
#

So it did show a 3DS screen, and you push on "close" button?

unkempt parcel
#

any other way to close the secure page automatically

dense flax
#

Sorry I don't really follow. Could you elaborate clearly which steps have you follow in a bullet points list? ie.

  1. This code called
  2. The page open
  3. You push on X button
  4. The error happens on console
unkempt parcel
#

Initially i get the method id using our card details and send the server then get from server intentid ,while get intent id i send the 3D secure using this function

let paymentHandler = STPPaymentHandler.shared()
paymentHandler.handleNextAction(forPayment: main , with: self, returnURL: nil) { status, paymentIntent, handleActionError in

that time navigate above screen, but not close automatically?

dense flax
#

This is already after the 3DS page is authenticated, so yes it is expected to go to payment success place. But the idea is it should follow the success_url in an universal link back to your app.

#

As I mentioned in previous thread, here it is trying to follow a link, and Apple won't allow to just bypass this dialogue

unkempt parcel
#

just inform,

In another one application was already working same account and configure that app bundle id in server side, I have follwed the same method in the application but doesn't close the secure screen automatically ?

dense flax
#

The another one application do you use scheme URL?

unkempt parcel
#

no return url set to nil

dense flax
#

So that's is the differences isn't it? With url=nul it doesn't redirect

unkempt parcel
#

but server side put return url using app bundle id