You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🎉 You are now ready to add Payplug Payment method.
183
+
In your back-office, go to `Configuration > Payment methods`, then click on `Create` and choose "**Payplug**".
184
+
185
+
---
186
+
187
+
### Without Symfony Flex (manual)
188
+
189
+
#### 1. Require the **payplug/sylius-payplug-plugin**
190
+
191
+
```bash
192
+
composer require payplug/sylius-payplug-plugin
193
+
```
194
+
195
+
#### 2. Register Sylius resources
49
196
50
197
The plugin's extension does not prepend its `resources.yaml`, so the Sylius resource services for the Card and RefundHistory entities are never created. Add them manually in `config/packages/sylius_resource.yaml`:
The plugin uses `#[Autoconfigure]` on some actions and relies on named constructor arguments that Symfony cannot resolve automatically. Add the following to `config/services.yaml`:
69
216
@@ -77,13 +224,13 @@ services:
77
224
alias: payplug.repository.payplug_refund_history
78
225
```
79
226
80
-
### 5. Apply migrations to your database:
227
+
#### 4. Apply migrations to your database
81
228
82
229
```shell
83
230
bin/console doctrine:migrations:migrate
84
-
```
231
+
```
85
232
86
-
### 6. Add Payplug to refundable payment method for Sylius Refund Plugin in `config/services.yaml`
233
+
#### 5. Add Payplug to refundable payment methods for Sylius Refund Plugin in `config/services.yaml`
87
234
88
235
```yaml
89
236
parameters:
@@ -96,7 +243,7 @@ parameters:
96
243
- payplug_american_express
97
244
```
98
245
99
-
### 7. Add Traits for Customer and PaymentMethod entities
246
+
#### 6. Add Traits for Customer and PaymentMethod entities
100
247
101
248
* App\Entity\Customer\Customer
102
249
@@ -153,7 +300,7 @@ class PaymentMethod extends BasePaymentMethod
153
300
return new PaymentMethodTranslation();
154
301
}
155
302
}
156
-
```
303
+
```
157
304
158
305
* App\Entity\Payment\Payment
159
306
@@ -179,27 +326,27 @@ class Payment extends BasePayment
179
326
{
180
327
use PaymentTrait;
181
328
}
182
-
```
329
+
```
183
330
184
-
### 8. Process translations
331
+
#### 7. Process translations
185
332
186
333
```bash
187
334
php bin/console translation:extract en PayPlugSyliusPayPlugPlugin --dump-messages
0 commit comments