PHP code example of webgriffe / sylius-pagolight-plugin

1. Go to this page and download the library: Download webgriffe/sylius-pagolight-plugin 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/ */

    

webgriffe / sylius-pagolight-plugin example snippets


    

    declare(strict_types=1);

    namespace App\Entity\Payment;

    use Doctrine\ORM\Mapping as ORM;
    use Webgriffe\SyliusHeylightPlugin\Entity\WebhookToken as BaseWebhookToken;
    
    /**
     * @ORM\Entity
     * @ORM\Table(name="webgriffe_sylius_heylight_webhook_token")
     */
    class WebhookToken extends BaseWebhookToken
    {
    }
    
yaml
   imports:
       - { resource: "@WebgriffeSyliusHeylightPlugin/config/config.php" }
   
yaml
   webgriffe_sylius_heylight_plugin_shop:
       resource: "@WebgriffeSyliusHeylightPlugin/config/shop_routing.php"
       prefix: /{_locale}
       bgriffeSyliusHeylightPlugin/config/shop_ajax_routing.php"

   sylius_shop_payum_cancel:
       resource: "@PayumBundle/Resources/config/routing/cancel.xml"

   
bash
    php bin/console doctrine:migrations:diff
    php bin/console doctrine:migrations:migrate
    
bash
    php bin/console sylius:install:assets
   
javascript
    .addEntry(
        'webgriffe-sylius-heylight-entry',
        './vendor/webgriffe/sylius-heylight-plugin/public/poll_payment.js'
    )