Prerequisites
Before you start, make sure you have:- an active iMoney Encaissement merchant account;
- your merchant public key;
- a unique transaction reference for each payment;
- a redirect URL for after the payment;
- a callback URL to receive the payment status.
Installing the SDK
Add the SDK script just before the closing</body> tag of your page.
Adding the payment button
Place the payment button where you want it on your page, then fill in the attributes with your transaction values.Available attributes
Warning: use the data-environement attribute exactly as spelled above.
Warning: the user must stay on the payment page until the operation is complete so that the callback can be processed correctly.
Warning: never validate an order based only on the redirection or on data-callback-url. Check the reference on the server side with the API or an authenticated webhook — see Webhooks.
The <button> block and the <script> block above can be combined as is in an existing page: the button where you want it to appear, the script before the closing </body> tag.