Open rcourivaud opened 5 years ago
That would be really appreciated in our project as well :)
@jadeburton-sumup are there any plans to bring receiptEMail
and receiptSMS
to iOS?
@vfoixcable any plans to bring receiptEMail and receiptSMS to iOS? They are part of the Android SDK.
Hi @oliverschaefer we're looking into making both SDKs have the same options, which means this may be added to the iOS SDK. However, we are not planning to have it in the upcoming iOS SDK version, 4.3.0.
@jadeburton-sumup Thanks for the clarification. If you need any help with the iOS part of the SDK please let me know. I'd volunteer :-D
@jadeburton-sumup After digging a little into the view hierarchy of the presented view controllers, I found a way to implement this in the current SDK:
guard let receiptViewController = viewController.children.first(where: { childViewController in String(describing: type(of: childViewController)) == "SMPPaymentReceiptRequestVC" }), let textFieldContainer = receiptViewController.view.subviews.last?.subviews.first as? UIStackView else { return } (textFieldContainer.arrangedSubviews.first as? UITextField)?.text = "support@sumup.de" (textFieldContainer.arrangedSubviews.last as? UITextField)?.text = "03030809902"
It's possible to pre-fill email or phone number on Android SDK but the iOS one don't allow to do this.