#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, 15 hours ago, 34 messages
In our iOS app integrating stripe and create method id successfully and send method id to get payment intent id and client secret on that time doing three_d_secure method using below method
let paymentHandler = STPPaymentHandler.shared()
paymentHandler.handleNextAction(forPayment: main , with: self, returnURL: nil) { status, paymentIntent, handleActionError in
in this time secure page will open and show popup move on another app but not closing automatically if i mannualy press the close button code move to success
for reference
Is "FMB" here standing for a different app than your app?
Hmm what do you mean by shows another app? "Fusion Kitchen" is another app?
yes
That could be scheme collision. They probably uses the same scheme
but i want close this page automatically
So you don't want to even display this page at all, instead go directly back to your app
Not familiar with iOS Scheme recently but I think that's Apple's specific requiement and could be not possible to bypass
yes, if its present and auttomatically close
ohh
Can you try using Universal Link instead of Scheme?
okay. when i get univeersal link
It's an Apple topic: https://developer.apple.com/ios/universal-links/
okay , thank you
hi i am using this code in app delegate
func application(_ app: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
if userActivity.activityType == NSUserActivityTypeBrowsingWeb {
if let url = userActivity.webpageURL {
// Handle the URL, e.g., navigate to a specific view controller
print("Received Universal Link URL: (url)")
return true
}
}
return false
}
and its secure page like
Have you setup the Universal Link correctly first? https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content
For receiving it, I would recommend following the example code in https://docs.stripe.com/payments/accept-a-payment?platform=ios&ui=payment-sheet#ios-set-up-return-url
HSTS (HTTP Strict Transport Security): The error message indicates that HSTS is not allowed to set for the main document. HSTS is a web security policy mechanism that helps to protect websites against man-in-the-middle attacks such as protocol downgrade attacks and cookie hijacking. However, it might not be directly related to your Stripe integration.
To investigate this further, review your server's HSTS settings. Ensure that your server is configured correctly to support HSTS if needed. If you are unsure or if this is not within your control (e.g., if you are using a third-party server), you may need to contact the server administrator or support for assistance.
Yeah that's the HSTS settings for Universal Link
@cosmic flax , can you help me?