Digital Certificate (PAC Signer)
To issue electronic invoices that are valid with Panama’s DGI, the app needs a digital certificate (P12 file) to sign each XML document.
Prerequisites
Before setting up the certificate, you need:
- P12 file — A digital certificate issued by an authorized certification authority.
- P12 password — The password that protects the certificate.
- Company code — Code assigned by your PAC (Aludra).
- API Key — Integration key for Aludra.
Setting Up the Certificate
- Go to Settings in the app.
- Find the “Digital Certificate / PAC Signer” section.
- Press “Configure”.
- Select the P12 file from the device storage.
- Enter the certificate password.
- Press “Initialize”.
Verification
Upon successful initialization:
- A green indicator confirms the certificate is loaded.
- The certificate expiration date is displayed.
- The app is ready to sign invoices.
If Initialization Fails
| Error | Cause | Solution |
|---|---|---|
| Incorrect password | The password does not match the P12 | Verify the password |
| Invalid certificate | Corrupt file or incorrect format | Obtain a new P12 |
| Expired certificate | The P12 has expired | Renew with your certification authority |
How Signing Works
When you complete a sale with an electronic invoice:
- The app generates the invoice XML with the sale data.
- The PAC Signer digitally signs the XML using the P12 certificate.
- The CUFE (Unique Electronic Invoice Code) is generated.
- If connected, it is sent to Aludra, which transmits it to the DGI.
- If there is no connection, it is saved locally for later submission.
Submission to the DGI (Aludra)
The Aludra configuration is done from the Web Portal under Settings > DGI/PAC:
- API Key — Authentication key.
- Company Code — Identifier with Aludra.
- Automatic Submission — Enable/disable automatic submission upon completing a sale.
Invoice Statuses
| DGI Code | Status | Meaning |
|---|---|---|
0920 | Accepted | Invoice processed successfully |
0260 | Accepted | Invoice accepted (alternate code) |
| Other | Error | Review error details |
| — | Pending | Has not yet been submitted to the DGI |
Retrying Failed Invoices
- Go to Electronic Invoices in the side menu.
- Filter by “Error” or “Pending” status.
- You can:
- Retry a single invoice.
- Retry all pending invoices at once.
Certificate Maintenance
- Expiration: Periodically check the expiration date in Settings.
- Renewal: When you obtain a new P12, repeat the setup process.
- Multiple devices: Each tablet needs its own P12 initialization (the same file can be used on all of them).
Having invoice issues? See Electronic Invoicing Need to set up the printer? See Printers