Worldpay / worldpay-lib-ios

iOS Library for Worldpay
https://online.worldpay.com
20 stars 11 forks source link

Create Token fails #14

Open RosscoMT opened 6 years ago

RosscoMT commented 6 years ago

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")

Any thoughts on what I am doing wrong?

jramini12 commented 5 years ago

Hi, I am having the same issue, have you managed to find a solution?

rutchkiwi commented 5 years ago

@evilelement I'm also getting this, did you make any progress? any info would be much appriciated

rutchkiwi commented 5 years ago

For anyone stumbling in here, In my case the issue was that I was using my test client key with a real apple pay/credit card. When I switched to using the live client key it worked.

jramini12 commented 5 years ago

Same here, for some reason the test keys wouldn't work and it started working when I started using the live keys.