worldpay / worldpay-lib-ios Goto Github PK
View Code? Open in Web Editor NEWiOS Library for Worldpay
Home Page: https://online.worldpay.com
iOS Library for Worldpay
Home Page: https://online.worldpay.com
ERROR ITMS-90535: "Unexpected CFBundleExecutable Key. The bundle at 'WorldpayResources.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."
Is the error I get when I try to upload my swift project to apple, I have followed the bridge header instructions to get everything set up
I am trying to integrate World Pay iOS SDK with Swift 2.0 and iOS 9.2. As per the documentation there should be a function called "setClientKey". Unfortunately i could not find any functions like that.
[ [Worldpay sharedInstance] setClientKey:YOUR_CLIENT_KEY ];
When i type this Xcode helps with auto-completion, but i could see only these.
Worldpay.sharedInstance().setClass(AnyClass?, forClassName: String)
Worldpay.sharedInstance().setClassName(String?, forClass: AnyClass)
I found an another on using swift. This returns an error like this "Cannot assign to property: function call returns immutable value"
Worldpay.sharedInstance().clientKey = ""
But inside World Pay iOS Library, i saw this.
"Property that sets the Client Key which is used for API calls made directly from your customer's browser"
@Property (nonatomic, retain) NSString *clientKey;
Which means that i can set Client Key using this property. But i could not.
Is there any workaround ? Let me know please.
Hi,
Please help me how to use worldpay SDK with out cocoapods.
Thanks
Smily
Hi, I'm getting 401 when calling https://qa02-api.worldpay.io/v1/tokens to create token. My client key is set correctly. Error response:
failure info: [message: EXT_519: Unauthorized Access, customCode: UNAUTHORIZED, errorHelpUrl: , description: Request can't be authorized, please validate your request, httpStatusCode: 401, originalRequest: {'clientKey':'T_C_de573437-7f54-44fa-b0e5-064a761775e4','reusable':true,'paymentMethod':{'cardNumber':'**** * * 1111','cvc':'_','expiryMonth':'__','type':'Card','name':'Donald King','expiryYear':'_'}}] [Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: unauthorized (401)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x7fef6056fd90> { URL: https://qa02-api.worldpay.io/v1/tokens } { status code: 401, headers {
Connection = "keep-alive";
"Content-Length" = 418;
"Content-Type" = "application/json;charset=UTF-8";
Date = "Wed, 20 Jan 2016 11:46:13 GMT";
Server = "Windows NT 3.x";
"X-Content-Type-Options" = nosniff;
} }, NSErrorFailingURLKey=https://qa02-api.worldpay.io/v1/tokens, com.alamofire.serialization.response.error.data=<7b226874 74705374 61747573 436f6465 223a3430 312c2263 7573746f 6d436f64 65223a22 554e4155 54484f52 495a4544 222c226d 65737361 6765223a 22455854 5f353139 3a20556e 61757468 6f72697a 65642041 63636573 73222c22 64657363 72697074 696f6e22 3a225265 71756573 74206361 6e277420 62652061 7574686f 72697a65 642c2070 6c656173 65207661 6c696461 74652079 6f757220 72657175 65737422 2c226572 726f7248 656c7055 726c223a 6e756c6c 2c226f72 6967696e 616c5265 71756573 74223a22 7b27636c 69656e74 4b657927 3a27545f 435f6465 35373334 33372d37 6635342d 34346661 2d623065 352d3036 34613736 31373735 6534272c 27726575 7361626c 65273a74 7275652c 27706179 6d656e74 4d657468 6f64273a 7b276361 72644e75 6d626572 273a272a 2a2a2a20 2a2a2a2a 202a2a2a 2a203131 3131272c 27637663 273a272a 2a2a2a27 2c276578 70697279 4d6f6e74 68273a27 2a2a272c 27747970 65273a27 43617264 272c276e 616d6527 3a27446f 6e616c64 204b696e 67272c27 65787069 72795965 6172273a 272a2a2a 2a277d7d 227d>, NSLocalizedDescription=Request failed: unauthorized (401)}]
Afternoon Worldpay,
I am currently implementing your library into an iOS 11.4 Apple pay app. Have followed through your documentation from here but having difficulties getting the world pay method Worldpay.sharedInstance().createToken(withPaymentData: data, success: { (code: Int32, dataSet: [AnyHashable : Any]?) in
to work with the data supplied back from func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController, didAuthorizePayment payment: PKPayment, completion: @escaping (PKPaymentAuthorizationStatus) -> Void) {
as it currently reports back:
▿ Optional<Dictionary<AnyHashable, Any>> ▿ some : 6 elements ▿ 0 : 2 elements ▿ key : AnyHashable("description") - value : "description" - value : Token used with request is invalid. Please create a valid token again. ▿ 1 : 2 elements ▿ key : AnyHashable("errorHelpUrl") - value : "errorHelpUrl" - value : <null> ▿ 2 : 2 elements ▿ key : AnyHashable("message") - value : "message" - value : EXT_1: Error decrypting apple token for client key [XXXXXXXXXXXXXXXXXXXXXX] ▿ 3 : 2 elements ▿ key : AnyHashable("httpStatusCode") - value : "httpStatusCode" - value : 400 ▿ 4 : 2 elements ▿ key : AnyHashable("customCode") - value : "customCode" - value : INVALID_TOKEN
Any thoughts on what I am doing wrong?
Hello,
library is working fine in iOS 8 but it is not working in iOS 7.I am getting EXC_ARM_BREAKPOINT error and the app is terminating please let me know is there any issue in my side or in the library
Regards,
Hi
We are trying out the sample project to test our account with 3DS payments however it does not seem to work for us when we enable the 3DS a blank page comes up then disappears and we just get the message "Error authorising 3DS Order"
The card I am using works with 3DS on other websites so this should not be the issue. also we spoke with WorldPay tech support who suggested our original code is not handling the pasres value and advised us to try the test project from what I can see it looks like an issue with the iOS SDK perhaps?
This is the error response dictionary
(lldb) po responseDictionary { customCode = "INVALID_PAYMENT_DETAILS"; description = "Server is refusing to fulfill the request."; errorHelpUrl = "<null>"; httpStatusCode = 400; message = "EXT_67: Verification of threeDSResponseCode failed"; originalRequest = "{'threeDSResponseCode':'eNpVj8EOwiAQRH+F9ANAPK97sR69aH+AyERJEJKF9vutKbX1ODuzs29peAnQ3\\/EYBUxXlOKeUMGfOtsxXUSyME2QEnJiqw\\/6SGaVhK99zh5syWximbcuvuVcFSLeSFWFNLkYvG7xNbNs9KguRN4jtVxzZpDkt4s7Raahml+l+XvtA+vTU7M','shopperUserAgent':'Mozilla\\/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit\\/601.1.46 (KHTML, like Gecko) Mobile\\/13B143','shopperAcceptHeader':'application\\/json','shopperSessionId':'C40082F9B80585843A6ACDF6A727FCD1','shopperIpAddress':'192.172.0.44'}";
Thanks Aaron
When will you update it for afnetwork 3.0?
Hi,
I need to display all the fileds like address1,address2,city and passcode in standard viewController.
Thanks
Smily
I used the 'AFNetworking', '~> 3.0’ in my whole app and now at the end i want to integerate the worldpay payment method but when i import the worldpay file i got this error
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in libWorldpay.a(Worldpay.o)
objc-class-ref in libWorldpay.a(ThreeDSController.o)
objc-class-ref in libWorldpay.a(APMController.o)
"_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
objc-class-ref in libWorldpay.a(WorldpayUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I google it and try everything but nothing worked. Please tell me the solution. Thanks
How to use in react native
Hi,
When I use latest AFNetworking ~> 3.0 library then it gives me error.
I suggest you to use latest AFNetworking library or use Alamofire.
Thank you,
Application is still crashing in this method
Integrated worldpay into my project using cocoapods but getting this error
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_AFHTTPRequestOperation", referenced from:
objc-class-ref in libWorldpay.a(Worldpay.o)
objc-class-ref in libWorldpay.a(ThreeDSController.o)
objc-class-ref in libWorldpay.a(APMController.o)
"OBJC_CLASS$_AFHTTPRequestOperationManager", referenced from:
objc-class-ref in libWorldpay.a(WorldpayUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
how to solve this cant find any solution, help me out from this issue
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.