Payments
Payment
Creating a Payment Programmatically
$payment = $this->container->get('sylius.factory.payment')->createNew();
$payment->setOrder($order);
$payment->setCurrencyCode('USD');
$this->container->get('sylius.repository.payment')->add($payment);Payment State Machine
transitions:
create:
from: [cart]
to: new
process:
from: [new]
to: processing
authorize:
from: [new, processing]
to: authorized
complete:
from: [new, processing, authorized]
to: completed
fail:
from: [new, processing]
to: failed
cancel:
from: [new, processing, authorized]
to: cancelled
refund:
from: [completed]
to: refunded
Payment Methods
Creating a Payment Method Programmatically:
Payment Gateway Configuration
Troubleshooting
PayPal Error Code 10409
Payment Complete Events
Last updated
Was this helpful?
