-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/OP-369-upgrade-plugin-to-sylius-1.…
…13-support
- Loading branch information
Showing
3 changed files
with
148 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Functionalities | ||
|
||
--- | ||
|
||
The plugin integrates Braintree payments with Sylius based applications. | ||
>[Braintree Payments](https://www.braintreepayments.com/pl/features/payment-methods) is an online payment services company that is part of PayPal. | ||
Braintree offers a one-stop payment platform that enables businesses around the world to accept online and mobile payments. | ||
|
||
- After an installation, user should be able to create new Braintree payment method in the "Payment methods" section in the admin panel. | ||
|
||
<div align="center"> | ||
<img src="./images/braintree_methods.png"/> | ||
</div> | ||
|
||
- Once there, user can fill out the configuartion form with all the needed info like configuration keys, id, type of the environment, code, name etc.. | ||
|
||
<div align="center"> | ||
<img src="./images/braintree_create.png"/> | ||
</div> | ||
|
||
- After this, created payment method should be visible in the checkout. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Installation | ||
|
||
## Overview: | ||
GENERAL | ||
- [Requirements](#requirements) | ||
- [Composer](#composer) | ||
- [Basic configuration](#basic-configuration) | ||
--- | ||
ADDITIONAL | ||
- [Known Issues](#known-issues) | ||
--- | ||
|
||
## Requirements: | ||
We work on stable, supported and up-to-date versions of packages. We recommend you to do the same. | ||
|
||
| Package | Version | | ||
|---------------|-----------------| | ||
| PHP | \>8.0 | | ||
| sylius/sylius | 1.12.x - 1.13.x | | ||
| MySQL | \>= 5.7 | | ||
| NodeJS | \>= 18.x | | ||
|
||
## Composer: | ||
```bash | ||
composer require bitbag/braintree-plugin | ||
``` | ||
|
||
## Basic configuration: | ||
Add plugin dependencies to your `config/bundles.php` file: | ||
|
||
```php | ||
# config/bundles.php | ||
|
||
return [ | ||
//... | ||
BitBag\SyliusBraintreePlugin\BitBagSyliusBraintreePlugin::class => ['all' => true] | ||
]; | ||
``` | ||
|
||
Import required config in your `config/packages/_sylius.yaml` file: | ||
|
||
```yaml | ||
# config/packages/_sylius.yaml | ||
|
||
imports: | ||
#... | ||
- { resource: "@BitBagSyliusBraintreePlugin/Resources/config/config.yml" } | ||
``` | ||
## Known issues | ||
### Translations not displaying correctly | ||
For incorrectly displayed translations, execute the command: | ||
```bash | ||
bin/console cache:clear | ||
``` |