PHP code example of tapbuy / alma

1. Go to this page and download the library: Download tapbuy/alma 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/ */

    

tapbuy / alma example snippets


$payment->setAdditionalInformation('tapbuy', $serializer->serialize([
    'accept_url' => 'https://your-domain.com/success',
    'cancel_url' => 'https://your-domain.com/cancel'
]));

} catch (\Exception $e) {
    // Add logging here if needed
    $this->logger->error('Tapbuy Alma plugin error: ' . $e->getMessage());
}
bash
php bin/magento module:enable Tapbuy_Alma
bash
php bin/magento setup:upgrade
bash
php bin/magento cache:clean