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

Exception: Call to undefined method MatscodePaystackUtilityText::uniqueStr() #5

Open
nelwa opened this issue Sep 4, 2023 · 2 comments

Comments

@nelwa
Copy link

nelwa commented Sep 4, 2023

Hi,

When using the library I get this exception:

Exception: Call to undefined method MatscodePaystackUtilityText::uniqueStr()

/vendor/matscode/paystack-php-sdk/src/Resources/Transaction.php
LINE: 27

Any thoughts?

@ewudo
Copy link

ewudo commented Feb 9, 2024

Hi there!

Replace
this code
$this->setReference('REF-' . ($this->data['reference'] ?? Text::uniqueStr()));
with
this
$this->setReference($this->data['reference'] ?? 'REF-' . uniqid());

@matscode
Copy link
Owner

Thank you for the reply @ewudo

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

3 participants