PaystackHQ / paystack-ios

Paystack SDK for iOS. Accept Payments on iOS
http://paystack.com
MIT License
26 stars 31 forks source link

new' is unavailable: You cannot directly instantiate an PSTCKTransaction. #63

Open Ahyox opened 3 years ago

Ahyox commented 3 years ago

Problem/Motivation

Error message:

new' is unavailable: You cannot directly instantiate an PSTCKTransaction. You should only use one that has been returned from an PSTCKAPIClient callback.

Screenshot 2021-06-25 at 21 30 27

Everything was working perfectly until I updated Xcode.

Xcode version: Version 12.5 (12E262)

ravi-paystack commented 3 years ago

@Ahyox Thanks for reporting. May I know which version you are using? We have already identified this issue and released a fix for it. The latest version v3.0.17 should not throw this error.

Ahyox commented 3 years ago

@ravi-paystack Thanks for the reply. Im using this pod 'Paystack' so I can really say the version used.

neyosoft commented 3 years ago

@ravi-paystack I experience the same issue on the RN SDK. can you give me a quick guide to fix this on RN?

ravi-paystack commented 3 years ago

@neyosoft do you get the same error on v3.0.17 ?

neyosoft commented 3 years ago

Thanks for the feedback @ravi-paystack I think v3.0.17 fixed this particular issue but caused another issue

haewhybabs commented 3 years ago

I'm currently experiencing the error, I upgraded to version 3.0.17 but it led to another error, Paystack/Paystack-swift-h file not found PTSCKAPIClient.m.

How were you guys able to solve it

wptechprodigy commented 1 year ago

@Ahyox how did you resolve the issue?

I have this same issue, how can I resolve it?

I am using Xcode version 14.3.1 and I have this Paystack in my Podfile:

 pod `Paystack`, '~> 3.0'

I am not certain what to do. I have changed it to only pod `Paystack` and had the same issue. While reinstalling, this was the version installed:

Installing Paystack (3.0.13)

What can I do? @ravi-paystack

wptechprodigy commented 1 year ago

@ravi-paystack any luck with a way out on fixing this issue?

Ahyox commented 1 year ago

@wptechprodigy I can't really remember what I did back then, but it looked like I deleted the previous version and install paystack to 3.0.17.

wptechprodigy commented 1 year ago

@wptechprodigy I can't really remember what I did back then, but it looked like I deleted the previous version and install paystack to 3.0.17.

Okay @Ahyox , I'll give it a try!