PHP code example of webgriffe / sylius-pausepay-plugin
1. Go to this page and download the library: Download webgriffe/sylius-pausepay-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-pausepay-plugin example snippets
declare(strict_types=1);
namespace App\Entity\Payment;
use Doctrine\ORM\Mapping as ORM;
use Webgriffe\SyliusPausePayPlugin\Entity\PaymentOrder as BasePaymentOrder;
/**
* @ORM\Entity
* @ORM\Table(name="webgriffe_sylius_pausepay_payment_order")
*/
class PaymentOrder extends BasePaymentOrder
{
}
declare(strict_types=1);
namespace App\Resolver\PausePay;
use Sylius\Component\Core\Model\OrderInterface;
use Webgriffe\SyliusPausePayPlugin\Resolver\CompanyInfoResolverInterface;
use Webgriffe\SyliusPausePayPlugin\ValueObject\CompanyInfo;
final class CompanyInfoResolver implements CompanyInfoResolverInterface
{
public function resolveFromOrder(OrderInterface $order): CompanyInfo
{
// TODO: your logic here
}
}