You need to override PayumBundle .
How to do it?
You need to reproduce the folder structure of the package that you want to override inside your /src/Path/To/Your/Bundle/Resources/views , and place the branch file that you want to override inside it.
Example
Say your package name is FooBundle , and you want to override PayumBundle payment.twig.html (I'm just doing an example, I don't know if there is a file with that name). Let's also say that this branch is inside /vendor/Path/To/PayumBundle/Resources/views/Payment/payment.twig.html .
What you need to do is create inside /src/Path/To/Your/Bundle/Resources/views/Payment/payment.twig.html
Symfony2 will first look in your package for overridden views: if someone takes yours and ignores the packages alone. Otherwise, he will need a package.
source share