Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ahyox opened this issue Jun 26, 2021 · 10 comments
Open

Comments

@Ahyox
Copy link

Ahyox commented Jun 26, 2021

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
Copy link
Contributor

@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
Copy link
Author

Ahyox commented Jun 28, 2021

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

@neyosoft
Copy link

@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
Copy link
Contributor

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

@neyosoft
Copy link

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

@haewhybabs
Copy link

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
Copy link

wptechprodigy commented Jul 15, 2023

@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
Copy link

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

@Ahyox
Copy link
Author

Ahyox commented Jul 18, 2023

@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
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants