New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Incorrect functionality to Android SDK #3442
Comments
Hi @chrisjenx
PaymentSheet on iOS and PaymentLauncher on Android are not equivalents.
You do not need to pass in a public func confirmSetupIntent(
_ setupIntentConfirmParams: STPSetupIntentConfirmParams,
with authenticationContext: STPAuthenticationContext,
completion: @escaping STPPaymentHandlerActionSetupIntentCompletionBlock
) A common way to do this is something similar to: extension ExampleViewController: STPAuthenticationContext {
func authenticationPresentingViewController() -> UIViewController {
self
}
} Then confirm your SetupIntent as: // Inside of ExampleViewController...
STPPaymentHandler.shared().confirmSetup(
setupIntentParams,
with: self
) { ( ... You can see this in various examples in the SDK.
Could you elaborate further? Based on my replies above, the functionality is largely the same. Some names are different, but overall functionality and set of available APIs is similar. Additionally, you mention you are on version 22.36, but we have not published a version 22.36 of the iOS SDK, which version are you on? It is recommended to be on the latest version. |
Summary
Confirming a Mandate works differently to Android SDK.
Issue 1:
Why do we need the customer ephemeral key at this point? For bank mandates it's not even required for the PaymentLauncher on Android.
Issue 2
The main issue is that your version of STPCustomerContext requires the raw json vs the actual key on android:
Can we omit the whole STPPaymentContext or at least only pass through just the Key so I don't have to completely change a bankend call when creating a setup intent.
iOS version
15+
Installation method
Pods
SDK version
22.36
Other information
Thirdly why are your SDK so far apart and inconsistant, iOS and Android basically work the same these days, it's not great they work completely differently.
The text was updated successfully, but these errors were encountered: