Giter Site home page Giter Site logo

worldpay-lib-ios's People

Contributors

ao avatar pfich-wp avatar ssimmie-wpay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

worldpay-lib-ios's Issues

Swift project uploading to apple gives error

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

Could not find setClientKey:YOUR_CLIENT_KEY in Swift ?

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.

Create Token API returning 401

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)}]

Create Token fails

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?

App crashing in ios7

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,

Test Project does not work with 3DS Enabled

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

Stuck at integrating worldpay

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

App is still crashing in ios 7

Application is still crashing in this method

  • (void)loadFont:(NSString *)fontName {
    NSString *fontPath = [[WorldpayUtils frameworkBundle] pathForResource:fontName ofType:@"ttf"];
    please let me if I am making any mistake in using the library

Integrated wordpay using cocoapods but stuck at this error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.