diff --git a/CHANGELOG.md b/CHANGELOG.md index dbac209..62716ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ 6.0.1: Fixed translations and admin config. Added utils bundle in require list. Rename pre_auth to pre_authorize. Created changelog. 6.1.0: Full refactoring and redesign structure. Main changes: Entity rename Log -> Event, added Redirect Entity, changed admin services, payment factory, the creating event about changed payment state. + +6.1.1: Changed the interface for receipt factory and added readme. diff --git a/README.md b/README.md index d70550a..60361e0 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Scheme of payment state changes: composer require darvinstudio/darvin-payment-bundle ``` -## Creating Payment: +## How to create Payment ```php /** @var $paymentFactory \Darvin\PaymentBundle\Payment\Factory\PaymentFactoryInterface */ $payment = $paymentFactory->createPayment( @@ -43,8 +43,12 @@ Scheme of payment state changes: ); ``` -## Show available payment links -PaymentBundle has twig function for show every available payment methods of order. It can use for success page, email notify or for show in personal account. +## How to get payment's link in twig +```twig + {{ payment_purchase_urls(payment) }} +``` + +## How to get all available payment's links for order ```twig {{ payment_purchase_widget(order) }} ```