Create a new component to collect payment by mobile money

Hello everyone.

Is there anyone to help Africans?
Is there anyone who can help users of the adalo tool by creating a public component that allows the collection of payments by mobile money? We encounter too many difficulties using stripe. Our accounts are blocked without reason…

Here is the code to study and integrate for this component.

.sdk { display: block; position: absolute; background-position: center; text-align: center; left: 50%; top: 50%; transform: translate(-50%, -50%); } function checkout() { CinetPay.setConfig({ apikey: '',// YOUR APIKEY site_id: '',//YOUR_SITE_ID notify_url: 'http://mondomaine.com/notify/', mode: 'PRODUCTION' }); CinetPay.getCheckout({ transaction_id: Math.floor(Math.random() * 100000000).toString(), // YOUR TRANSACTION ID amount: 100, currency: 'XOF', channels: 'ALL', description: 'Test de paiement', //Fournir ces variables pour le paiements par carte bancaire customer_name:"Joe",//Le nom du client customer_surname:"Down",//Le prenom du client customer_email: "down@test.com",//l'email du client customer_phone_number: "088767611",//l'email du client customer_address : "BP 0024",//addresse du client customer_city: "Antananarivo",// La ville du client customer_country : "CM",// le code ISO du pays customer_state : "CM",// le code ISO l'état customer_zip_code : "06510", // code postal
        });
        CinetPay.waitResponse(function(data) {
            if (data.status == "REFUSED") {
                if (alert("Votre paiement a échoué")) {
                    window.location.reload();
                }
            } else if (data.status == "ACCEPTED") {
                if (alert("Votre paiement a été effectué avec succès")) {
                    window.location.reload();
                }
            }
        });
        CinetPay.onError(function(data) {
            console.log(data);
        });
    }
</script>

SDK SEAMLESS

Checkout

DESCRIPTION OF THE COMPONENT;

:star: FIELDS:
add 4 fields

  1. To enter the API Key
  2. To enter site_id
  3. To enter the amount
  4. To enter the currency.

:star: ACTIONS
Add 2 actions

  1. an action if data.status==ACCEPTED
  2. An action if
    data.status==REFUSED

:star: APPEARANCE
For the appearance, from the JavaScript code provided, the payment counter will be displayed.

1 Like