Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a31c5c6

Browse files
Update checkout.rst
1 parent e1f3330 commit a31c5c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/book/orders/checkout.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ from the repository to assign it to your order's payment created defaultly in th
217217
// Let's assume that you have a method with code 'paypal' configured
218218
$paymentMethod = $this->container->get('sylius.repository.payment_method')->findOneByCode('paypal');
219219
220-
// Payments are a Collection, so even though you hve one Payment by default you have to iterate over them
220+
// Payments are a Collection, so even though you have one Payment by default you have to iterate over them
221221
foreach ($order->getPayments() as $payment) {
222222
$payment->setMethod($paymentMethod);
223223
}

0 commit comments

Comments
 (0)