affirm / affirm-ios-sdk Goto Github PK
View Code? Open in Web Editor NEW:no_entry: [DEPRECATED] Active at
Home Page: https://github.com/Affirm/affirm-merchant-sdk-ios
License: BSD 3-Clause "New" or "Revised" License
:no_entry: [DEPRECATED] Active at
Home Page: https://github.com/Affirm/affirm-merchant-sdk-ios
License: BSD 3-Clause "New" or "Revised" License
There seems to be an issue with trying to cancel out the affirm checkout controller twice.
Step to reproduce.
I was able to reproduce this on xcode 8, ios 9 - 10
We are using Affirm SDK in our Wayfair iOS app. In recent version we're seeing unintended behavior while trying to present AffirmBaseModalViewController
from the app. The issue occurs where base web view (WKWebView) is positioned awkwardly in the scene. (Attaching screenshots for reference)
We started experiencing this problem when Affirm SDK upgraded its web view from basic UIWebView
to WKWebView
. As per our observation, Affirm payment modal was presented properly before SDK received this update.
We tried to debug this bug on our end as much as possible with no luck. This bug appears on both simulator and actual iOS device. It is bit more confusing, since AffirmBaseModalViewController
shows the correct behavior on the demo app that is provided along with library. Have any of your other users experienced similar problem? Let us know if you need any other information from our end that can make debugging easier for you.
App preview
View Debugger output
This issue has already been fixed in commit ecba6cc, however a new release that includes this change has not been created yet.
Would you be able to create a new release including this change?
Hello, I setup Promotional button, for sandbox everything good, but for Production key and Env I have crash in SDK on this line: http://prntscr.com/nibcdi .
Logs:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]' *** First throw call stack: ( 0 CoreFoundation 0x000000011325d1bb __exceptionPreprocess + 331 1 libobjc.A.dylib 0x00000001127fb735 objc_exception_throw + 48 2 CoreFoundation 0x00000001131a94ec _CFThrowFormattedException + 194 3 CoreFoundation 0x00000001132cc541 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 321 4 CoreFoundation 0x0000000113258c9b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59 5 AffirmSDK 0x000000010af62a12 -[AffirmErrorResponse dictionary] + 296 6 AffirmSDK 0x000000010af60878 __86-[AffirmPromotionalButton configureWithAmount:affirmLogoType:affirmColor:maxFontSize:]_block_invoke + 794 7 AffirmSDK 0x000000010af5a427 __59+[__protocolContainer_AffirmClientProtocol_2 send:handler:]_block_invoke_2 + 295 8 libdispatch.dylib 0x000000011443d595 _dispatch_call_block_and_release + 12 9 libdispatch.dylib 0x000000011443e602 _dispatch_client_callout + 8 10 libdispatch.dylib 0x000000011444b99a _dispatch_main_queue_callback_4CF + 1541 11 CoreFoundation 0x00000001131c23e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 12 CoreFoundation 0x00000001131bca76 __CFRunLoopRun + 2342 13 CoreFoundation 0x00000001131bbe11 CFRunLoopRunSpecific + 625 14 GraphicsServices 0x0000000116c4d1dd GSEventRunModal + 62 15 UIKitCore 0x000000011a2c581d UIApplicationMain + 140 16 Shiekh Shoes Beta 0x00000001092d5037 main + 71 17 libdyld.dylib 0x00000001144b4575 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
In our app the user is able to logout. We couldn't find a way to also logout current user from the Affirm SDK, so when the new user tries an Affirm payment, the old user credentials are still present.
Version 4.0.16 appears to have introduced a bug where the compiler complains with the following message:
'AffirmSDK/AffirmCreditCard.h file not found'
Using:
Carthage v0.32.0
Swift 4.2
Xcode 10.1 (10B61)
Using Xcode 7.3.1
I am getting an upload error after I updated Affirm from v 2.1.1 to 2.2.0. I was able to rebuild on 2.1.1, so I'm pretty sure it has to do with 2.2.0
Here's the error:
ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'Payload/MYAPPName.app/AffirmSDK.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue." ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'Payload/MYAPPName.app/AffirmSDK.bundle' does not contain a bundle executable. If this bundle intentionally does not contain an executable, consider removing the CFBundleExecutable key from its Info.plist and using a CFBundlePackageType of BNDL. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."
Any ideas on why this is happening?
We are showing the Affirm View on a Modal dialog. If the user click the Affirms Terms of Service Link, the page will open on the root tab controller inside of being displayed on top of the current view.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.