PHP code example of thelia / cawl-payment-module
1. Go to this page and download the library: Download thelia/cawl-payment-module 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/ */
thelia / cawl-payment-module example snippets
bash
composer bash
php Thelia module:activate CawlPayment
bash
# Montant par défaut : 10,00 EUR
ddev exec php Thelia cawlpayment:test-transaction
# Montant personnalisé (en centimes)
ddev exec php Thelia cawlpayment:test-transaction --amount=4567 --currency=EUR
[2024-01-15 10:30:00] [CawlPayment] Creating hosted checkout for order #123
[2024-01-15 10:30:01] [CawlPayment] Hosted checkout created: abc123
[2024-01-15 10:32:00] [CawlPayment Webhook] Received webhook notification
[2024-01-15 10:32:00] [CawlPayment Webhook] Order #123 marked as PAID