paymob / symfony-bundle
Paymob Payment for Symfony.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:symfony-bundle
pkg:composer/paymob/symfony-bundle
Requires
- paymob/php-library: 1.0.*
 
This package is not auto-updated.
Last update: 2025-10-29 14:14:05 UTC
README
Installation
Install the Paymob Payment bundle for Symfony via paymob/symfony-bundle composer.
composer require paymob/symfony-bundleAdd the below route in the
config/routes.yamlfile of your project:
paymob_symfony:
    resource: '@PaymobSymfonyBundle/Resources/config/routing.yaml'
- In case your Application doesn't use Symfony Flex, you should enable the bundle manually by adding below line in 
config/bundles.phpfile: 
return [
    // ...
    Paymob\SymfonyBundle\PaymobSymfonyBundle::class => ['all' => true]
];
- Customize the process and callback actions that exist in vendor/paymob/symfony-bundle/src/Controller/ProcessController.php file as per your needs.
 
Configuration
Paymob Account
- Login to the Paymob account → Setting in the left menu.
 - Get the Secret, public, API keys, HMAC and Payment Methods IDs (integration IDs).
 
Merchant Configurations
- Edit the vendor/paymob/symfony-bundle/src/Resources/config/services.yaml file and paste each key in its place.
 - Please ensure adding the integration IDs separated by comma ,. These IDs will be shown in the Paymob payment page.
 - Copy integration callback URL that exists in services.yaml file,replace only the {YourWebsiteURL} with your site domain. Then, paste it into each payment integration/method in Paymob account.
 
- Below URL is considered as your website payment process for Paymob Payment. Just replace the {YourWebsiteURL} with the actual domain.