aa-ahmed-aa/sylius-paymob-plugin

This is the payment integration with paymob


README

Sylius Paymob Plugin

Sylius plugin for payment gateway Paymob operating in Egypt.

!!!! ⚠️ Sylius Version Support

  • master branch supports sylius version 1.8 & 1.9
  • 1.12 branch supports sylius version 1.12

Quickstart Installation

Installation

composer require aa-ahmed-aa/sylius-paymob-plugin

Make sure the plugin registered in config/bundles.php file:

return [
    ...
    Ahmedkhd\SyliusPaymobPlugin\AhmedkhdSyliusPaymobPlugin::class => ['all'=>true]
];

Add routing to your config/routes/sylius_shop.yaml

ahmedkhd_sylius_paymob_plugin_notify_url:
    resource: "@AhmedkhdSyliusPaymobPlugin/config/shop_routing.yml"

Add config to your config/packages/_sylius.yaml

imports:
 ...
    - { resource: "@AhmedkhdSyliusPaymobPlugin/config/config.yml" }

On Paymob

under payment integrations tab click edit on you environment and add these urls

Transaction processed callback

https://{domain_name}/payment/paymob/webhook

Develop this plugin

check development guide