#mahi_96911
1 messages · Page 1 of 1 (latest)
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.
- mahi_96911, 17 minutes ago, 26 messages
- mahi_96911, 17 hours ago, 34 messages
in which part does it give you this error?
let paymentHandler = STPPaymentHandler.shared()
paymentHandler.handleNextAction(forPayment: main , with: self, returnURL: nil) { status, paymentIntent, handleActionError in
switch (status) {
Can you screenshot? Is it handleActionError?
this function show secure page on that time got the error
not come to this loop, because if i mannualy press the close button only come to payment success loop
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
}
}
Sorry I didn't get the last part. By "loop" do you mean an infinite loop, or just the switch(status) block?
switch
So it did show a 3DS screen, and you push on "close" button?
Sorry I don't really follow. Could you elaborate clearly which steps have you follow in a bullet points list? ie.
- This code called
- The page open
- You push on X button
- The error happens on console
The error happens on console
Actually when i click the close button on above screen it will payment was success... i need to close that page automatically... is there any possible way to close the secure screen?
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?
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
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 ?
The another one application do you use scheme URL?
no return url set to nil
So that's is the differences isn't it? With url=nul it doesn't redirect
but server side put return url using app bundle id