sunat_cpe_efact 0.1.1
sunat_cpe_efact: ^0.1.1 copied to clipboard
EFACT OSE/PSE adapter for SUNAT Electronic Invoicing (CPE) in pure Dart, supporting REST OAuth2 (XML/JSON) and SOAP 1.1 UBL 2.1.
import 'package:sunat_cpe_efact/sunat_cpe_efact.dart';
void main() {
final provider = EfactProvider(
config: EfactConfig(
baseUri: EfactConfig.testRestUri,
username: '20100066603',
password: 'demo-password',
mode: EfactIntegrationMode.restJson,
),
);
print(
'Initialized ${provider.providerId} with capabilities: ${provider.capabilities}',
);
}