From b1792ae73fd8ab6a190eca410f716c34eccfd868 Mon Sep 17 00:00:00 2001 From: FaithlessLooting Date: Mon, 26 Jul 2021 15:54:12 +0100 Subject: [PATCH] Update checkout.rst --- docs/book/orders/checkout.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/book/orders/checkout.rst b/docs/book/orders/checkout.rst index 87a56e20708..5c3f664c0d4 100644 --- a/docs/book/orders/checkout.rst +++ b/docs/book/orders/checkout.rst @@ -217,7 +217,7 @@ from the repository to assign it to your order's payment created defaultly in th // Let's assume that you have a method with code 'paypal' configured $paymentMethod = $this->container->get('sylius.repository.payment_method')->findOneByCode('paypal'); - // Payments are a Collection, so even though you hve one Payment by default you have to iterate over them + // Payments are a Collection, so even though you have one Payment by default you have to iterate over them foreach ($order->getPayments() as $payment) { $payment->setMethod($paymentMethod); }