Sylius/docs/getting-started-with-sylius/shipping-and-payment.md
2024-11-04 14:24:40 +00:00

44 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout:
title:
visible: true
description:
visible: false
tableOfContents:
visible: true
outline:
visible: true
pagination:
visible: true
---
# Shipping & Payment
With the basic configuration completed, we can now move forward and set up the necessary options for customers to buy your products. During the checkout process, customers need to choose how they want their orders to be shipped and paid for.
## Shipping method
Sylius allows you to configure different **shipping methods** based on factors such as the shipping address (which is where the **Zone** concept becomes important) or the product's affiliation with a specific **Shipping Category**.
Lets create a shipping method named **“InPost”** that charges $5.00 for the entire order.
<figure><img src="../.gitbook/assets/shipping_method.png" alt=""><figcaption></figcaption></figure>
## Payment method
Customers also need to choose how they wish to pay for their orders. At least one **payment method** is required for checkout.
Before creating a payment method, ensure you have set up a **payment gateway** if necessary. Sylius supports an **Offline** payment method by default, but you can add more payment gateways via plugins.
Heres how to create a payment method:
1. Go to the **Payment Methods** section.
2. Select the payment method gateway for which you will create the payment method (if applicable) and configure it:
<figure><img src="../.gitbook/assets/payment_method.png" alt=""><figcaption></figcaption></figure>
{% hint style="info" %}
You can find additional payment gateway integrations by exploring [Sylius plugins](https://sylius.com/plugins).
{% endhint %}
Great! The only thing left is creating some products, and we can go shopping!\