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

ZATCA specifications Phase two #22

Merged
merged 118 commits into from
Jul 20, 2024
Merged

ZATCA specifications Phase two #22

merged 118 commits into from
Jul 20, 2024

Conversation

thaifanisalla
Copy link
Contributor

@thaifanisalla thaifanisalla commented Nov 4, 2022

Generating CSR content, based on parameters

use Salla\ZATCA\Models\InvoiceSign;

$xmlInvoice = 'xml invoice text';

$certificate = new \Salla\ZATCA\Helpers\Certificate(
            'certificate plain text (base64 decoded)',
            'private key plain text'
);

$certificate->setSecretKey('secret key text');

$invoice = (new InvoiceSign($xmlInvoice, $certificate))->sign();

// invoice Hash: $invoice->getHash()
// invoice signed as XML: $invoice->getInvoice()
// Invoice QR code as base64: $invoice->getQRCode()

@aneesdev
Copy link

@thaifanisalla @salkhwlani Any update on this PR to be merged soon? or at least can we use this branch separately ourselves?

@aneeskhan47
Copy link

@thaifanisalla @salkhwlani Day 928329 of asking when this phase two PR will be merged 😄

@thaifanisalla thaifanisalla requested a review from a team as a code owner July 17, 2024 21:09
@salkhwlani salkhwlani merged commit c4d58e8 into master Jul 20, 2024
1 check failed
@salkhwlani salkhwlani deleted the generate_csr_file branch July 20, 2024 10:48
@salkhwlani
Copy link
Member

Thank you all for waiting, we'll prepare the readme this week and release the new version

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

Successfully merging this pull request may close these issues.

None yet

6 participants