dev-master
9999999-dev http://sergeymarin.comPay receipt generator
MIT
The Requires
The Development Requires
by Sergey Marin
payment symfony receipt offline sberbank kvitanciya pd-4
Pay receipt generator
Receipt Bundle, (*1)
This bundle creates printable form of pay receipt PD-14 usualy used in banks of Russia., (*2)
composer require sergeym/pay-receipt-bundle:dev-master
or add to your composer json, (*3)
{ "require": { "sergeym/pay-receipt-bundle": "dev-master" } }
Enable the bundle in the kernel:, (*4)
``` php <?php // app/AppKernel.php, (*5)
public function registerBundles() { $bundles = array( // ... new Sergeym\ReceiptBundle\SergeymReceiptBundle() ); }, (*6)
### Step 3: Update app/config.yml ``` yaml sergeym_receipt: template: pd4: SergeymReceiptBundle:Default:pd4.html.twig # ../recipe/pd4 or just ../recipe because it default value # add more pay receipt form templates here merchant: 1: # merchant_id extra: payee: ~ okato: ~ inn: ~ kpp: ~ account: ~ bank: ~ correspondent_account: ~ bik: ~ #add more extra field for template injection using {{ receipt.extra('extra-name') }} # you can add more merchants
``` yaml, (*7)
sergeym_receipt: resource: "@SergeymReceiptBundle/Resources/config/routing.yml" prefix: /, (*8)
### How it works? Post request to */receipt* or */receipt/{receipt_form_name}*, where *{receipt_form_name}* is template name in *sergeym_receipt.template section* in config.yml POST data:
post_code post_address payer_name name merchant_id currency_code currency_digits_after_decimal_point total_amount return_url ```, (*9)
Pay receipt generator
MIT
payment symfony receipt offline sberbank kvitanciya pd-4