Card2Crypto FOSSBilling 1.0.1 - validation
Date: 27 October 2026
Runtime: PHP 8.3.36 CLI, OpenSSL enabled

PHP syntax: PASS
Adapter folder / filename / PHP class suffix / logo path: consistent
Supplied transparent logo: copied byte-for-byte, displayed at original aspect ratio
Bundled service RSA public key: byte-for-byte unchanged
GPL license: byte-for-byte unchanged
Distribution filename and content scan: PASS, no replaced branding found

Read-only service checks (no wallet or payment created):
https://api.card2crypto.org/control/provider-status/ : HTTP 200, JSON, no redirect
https://api.card2crypto.org/control/convert.php?value=1&from=eur : HTTP 200, JSON, no redirect
https://api.card2crypto.org/crypto/eth/info.php : HTTP 200, JSON, no redirect

Offline regression checks:
PASS adapter configuration and logo path agree
PASS missing wallet fails configuration
PASS blank provider uses hosted checkout and new API
PASS hosted alias: smartcard2cryptohosted
PASS hosted alias: Smart Card2Crypto Hosted
PASS direct provider retains process route and identifier
PASS amount email and encrypted address remain correctly encoded
PASS unencoded address gets encoded once
PASS hosted custom domains theme and logo remain supported
PASS direct provider omits hosted presentation settings
PASS invalid domain falls back to branded endpoints
PASS zero invoice stops before API request
PASS deposit checkout is blocked before API request
PASS wallet API failure cannot produce checkout link
PASS redirects remain disabled on API requests
PASS auto redirect safely serializes URL
PASS callback includes installation bound token
PASS valid signed callback credits exact invoice total once
PASS brand neutral signature fallback validates cryptographic source
PASS canonical header has priority over unrelated signatures
PASS empty canonical signature cannot fall back
PASS invalid canonical signature cannot fall back
PASS multiple fallback signature headers rejected as ambiguous
PASS signature candidate pattern is fully anchored
PASS missing key id uses bundled v1 key
PASS fallback key id is taken from matching prefix
PASS query string fallback validates unchanged raw bytes
PASS untrusted signature using other private key cannot credit
PASS tampered signed query is rejected before credit
PASS absent signature rejected before lock or credit
PASS unknown signing key rejected
PASS key path traversal rejected
PASS wrong gateway rejected
PASS invalid invoice token rejected even when callback signed
PASS pending callback does not credit invoice
PASS underpayment records code 3001 without credit
PASS tolerance boundary permits payment
PASS disabled tolerance accepts smaller signed payment
PASS wrong payout records code 3004 without credit
PASS payout split below 90 percent rejected
PASS wrong coin records code 3002 without credit
PASS duplicate blockchain callback cannot credit twice
PASS reprocessing final transaction preserves its outcome
PASS already paid invoice records extra payment without credit
PASS EUR invoice conversion uses new API endpoint
PASS native payout USD pricing uses new API endpoint
PASS temporary pricing failure records error and releases lock
PASS temporary conversion failure records error and releases lock
PASS transaction invoice mismatch releases acquired lock
PASS lock contention prevents payment
PASS missing payment data rejected and lock released
PASS older gateway configuration derives id from notify URL
PASS short installation salt refuses payment initiation
53 checks; 0 failures. Offline stubs; not a live FOSSBilling/payment-service test.

Scope and deployment:
- Tests use simulated FOSSBilling services and temporary RSA keys in an isolated copy.
- The real adapter public key was not replaced by a fixture key.
- Real checkout funding, live callback delivery, and an installed FOSSBilling database were not tested.
- Resolve outstanding payments before replacing an existing adapter: the local callback token and HMAC namespace have changed.
- Install as Card2CryptoCard; saved gateway records and custom hostname overrides are not automatically migrated.
- Read README.md and UPGRADE.md before installing.

Primary references checked:
https://card2crypto.org/developer/
https://card2crypto.org/custom-domain/
https://card2crypto.org/wp-content/uploads/2026/10/card2crypto-whmcs-gateway.zip
https://github.com/FOSSBilling/FOSSBilling/tree/0.8.8/src/modules/Invoice
