Instalación
Añade la dependencia a tupubspec.yaml:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
SDK oficial de VenePagos para aplicaciones móviles con Flutter.
pubspec.yaml:
dependencies:
venepagos_sdk: ^1.0.0
flutter pub add venepagos_sdk
import 'package:venepagos_sdk/venepagos_sdk.dart';
final client = VenePagos(
apiKey: 'vp_live_xxxxxxxx',
environment: VenePagosEnvironment.live,
);
void checkRates() async {
try {
final rates = await client.bank.getRates();
print('Tasa BCV: ${rates.usd}');
} catch (e) {
print('Error: $e');
}
}
final response = await client.bank.p2p(
phone: '04121234567',
bankCode: '0102',
amount: 25.0,
document: 'V12345678',
);