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

full code in simulation #45

Open
AhmedTarekYA opened this issue Oct 27, 2024 · 4 comments
Open

full code in simulation #45

AhmedTarekYA opened this issue Oct 27, 2024 · 4 comments

Comments

@AhmedTarekYA
Copy link

does any one finish the full integration code ?

@thaifanisalla
Copy link
Contributor

Yes , You can use this in simulation or production , Even in sandbox
we support the three modes

@AhmedTarekYA
Copy link
Author

AhmedTarekYA commented Nov 6, 2024 via email

@thaifanisalla
Copy link
Contributor

thaifanisalla commented Nov 23, 2024

Hi @AhmedTarekYA
Could you please provide the steps you followed?

Here are some important notes:

  • When generating the CSR, ensure the environment is set to "simulation" by passing 'simulation' using the setCurrentZatcaEnv(string $currentEnv) function here .
    here a full example of how to generate the CSR.
  • Make sure to provide the correct private key when signing the invoice.
  • For phpseclib, ensure you're using version "phpseclib/phpseclib": "3.0.x-dev".

@islamazouz
Copy link

islamazouz commented Dec 2, 2024

i have the same problem
image

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