aa-ahmed-aa/sylius-paymob-plugin

This is the payment integration with paymob


README

68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67

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