Skip to content

Commit

Permalink
changed config for Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-volodin committed Oct 5, 2020
1 parent 503b630 commit 59d5fd5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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) }}
```

0 comments on commit 59d5fd5

Please sign in to comment.