Skip to content
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

App Crashes When Using Custom Payment UI #14

Open
AymanFayezV opened this issue Jun 5, 2022 · 6 comments
Open

App Crashes When Using Custom Payment UI #14

AymanFayezV opened this issue Jun 5, 2022 · 6 comments

Comments

@AymanFayezV
Copy link

AymanFayezV commented Jun 5, 2022

I can't find "PayFortView" class to connect its outlets with my custom view UI elements.
Please note that it was working on the previous Payfort builds.
Xcode Version: 13.0
Payfort Version: 3.1.0

Screen Shot 2022-06-05 at 4 43 38 PM

Screen Shot 2022-06-05 at 5 01 50 PM

@AymanFayezV AymanFayezV changed the title Crash When Using Custom Payment UI App Crashes When Using Custom Payment UI Jun 5, 2022
@KhalidZayat
Copy link

The same issue, any help?

@oxnnj
Copy link

oxnnj commented Sep 12, 2022

If anyone is still struggling with this issue, add PayFortSDK in module.
Screenshot 2022-09-12 at 5 20 20 PM

Also, check this note from their doc:
[NOTE]: Ensure it is linked once in the Linked Framework and Libraries or just drag the PayFortSDK.xcframework to Embedded Binaries in the general tab in the project settings.

Drag & drop the .xcframework to Frameworks, Libraries, and Embedded Content.

@parulgarg004
Copy link

hello @oxnnj everything you mentioned is done in my code and it's still crashing. Can you please help?

@oxnnj
Copy link

oxnnj commented Sep 23, 2022

@parulgarg004 share your steps and code if possible.

@parulgarg004
Copy link

@oxnnj check the attached screenshot, and also a reply on the following issue: #13 (comment)

Screenshot 2022-09-23 at 12 06 00 PM

Screenshot 2022-09-23 at 12 06 10 PM

@oxnnj
Copy link

oxnnj commented Sep 23, 2022

@parulgarg004
Please share crash logs, also check UITextField class and check if you have this in pod -> PFKJVFloatLabeledTextField I have used JVFloatLabeledTextField because PFKJVFloatLabeledTextField giving me crashes.
If it is showing loading indicator then there is code initialization issue. For ObjC, use custom class for the .xib controls like,
CardNumberView
CVCNumberView
ExpiryDateView
CardHolderNameView
PayButton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants