initPayment method
Initie une demande de paiement Mobile Money (M-Pesa, Airtel Money, Orange Money).
Implementation
Future<GoPayResponse> initPayment(
double amount,
String devise,
String telephone,
String myref, {
String? usersId,
}) async {
final payload = <String, dynamic>{'amount': amount, 'devise': devise, 'telephone': telephone, 'myref': myref};
if (usersId != null) payload['users_id'] = usersId;
return _request('POST', '/api/v3/payment/init', payload);
}