Flutter
Un package Flutter qui simplifie l'implémentation des paiements mobiles avec Intram.
Mis à jour
String public_key = "6a695a2def2ba8e68c773a260f95c0a081e05e79fa6f55a815ef815244e8083a";
String private_key = "tpk_6296f02e367ddee79462671b54dbe568e12f4f41b0bf6b8f758de56cd1ccc68d";
String secret_key = "tsk_e29b25acdef149504854a5dc8c63ff472598c865b38e0829ebb984f3c93b8d16";
String merchant_key = "5ef22f1df84ed86d57b17519";bool required_user_information = true;
dynamic custom_user_information = {};bool required_user_information = false;
dynamic custom_user_information = {
"message": "Bienvenue sur Hangbé Store, veuillez éffectuer votre paiement pour faire cette commande",
"firstname": "Client",
"lastname": "Hangbé",
"email": "contact@hangbe.com"
};IntramSdkPayment intramSdkPayment = IntramSdkPayment(
public_key,
private_key,
secret_key,
merchant_key,
required_user_information,
custom_user_information
);int amount = 5000;
bool sandbox = true;
String store_name = "Hangbé Store";
String color = "#08a0cf";
String logo = "https://intram.org/images/logo-1.png";
dynamic init_payment_result = await intramSdkPayment.makePayment(
context,
amount,
sandbox,
store_name,
color,
logo
);{success: true, transaction: PJ2flG2YVc}dynamic transaction = await intramSdkPayment.getTransaction(init_payment_result["transaction"]);