PHP code example of webgriffe / sylius-klarna-payments-plugin
1. Go to this page and download the library: Download webgriffe/sylius-klarna-payments-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-klarna-payments-plugin example snippets
yaml
webgriffe_sylius_klarna_payments_plugin:
resource: "@WebgriffeSyliusKlarnaPaymentsPlugin/config/shop_routing.php"
prefix: /{_locale}
griffeSyliusKlarnaPaymentsPlugin/config/shop_ajax_routing.php"
sylius_shop_payum_cancel:
resource: "@PayumBundle/Resources/config/routing/cancel.xml"
bash
php bin/console sylius:install:assets
javascript
.addEntry(
'webgriffe-sylius-klarna-payments-entry',
'./vendor/webgriffe/sylius-klarna-payments-plugin/public/poll_payment.js'
)