PHP code example of mahocommerce / module-revolut
1. Go to this page and download the library: Download mahocommerce/module-revolut library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mahocommerce / module-revolut example snippets
bash
> curl -X POST https://sandbox-merchant.revolut.com/api/1.0/webhooks \
> -H "Authorization: Bearer <sk_...>" \
> -H "Revolut-Api-Version: 2024-09-01" \
> -H "Content-Type: application/json" \
> -d '{"url":"https://<your-store>/revolut/webhook","events":["ORDER_COMPLETED","ORDER_AUTHORISED","ORDER_PAYMENT_DECLINED","ORDER_PAYMENT_FAILED"]}'
>