# PayPo - Buy Now, Pay in 30 Days

PayPo is the leader of the Polish deferred payments market. It allows customers to purchase products and pay for them within 30 days without any additional costs, or spread the payment into installments.

For you as a seller, a PayPo payment is seen as immediately paid – SimPay guarantees the funds, and the process of collecting the payment from the customer is handled directly by PayPo.

## Recommended Data Passing (Billing & Shipping)

In the case of PayPo, it is a very good practice to pass the customer's (payer's) address data and shipping data directly via the API when generating a transaction.

**Why is this worth doing?**

1. **Higher conversion:** The customer does not have to re-enter their address on the PayPo gateway – the data is already pre-filled.
2. **Better scoring:** Complete data allows PayPo systems to perform faster and more often positive credit verification of the customer.


### Billing and Shipping Parameters

Below you will find the list of fields you can pass in the `billing` and `shipping` objects:

* **`name`** – First name
* **`surname`** – Last name
* **`street`** – Street
* **`building`** – Building number
* **`flat`** – Apartment number
* **`city`** – City
* **`postalCode`** – Postal code
* **`country`** – Country code (e.g., "PL")
* **`company`** – Company name (optional)


## What if I Don't Have This Data?

If your system does not collect this data at the time of payment initiation or you simply don't want to pass it – no worries. This data **is not required** to correctly generate a transaction.

If this information is missing from the API, our payment gateway will display a clear form to the customer asking them to fill it in before proceeding to finalize the payment in PayPo.

**This is what the SimPay gateway looks like when address data is not provided:**

## Technical Integration (directChannel)

To direct the customer directly to the PayPo method, use the following parameters in the `POST /payment/{serviceId}/transactions` request:

* **`directChannel`:** `paypo`
* **Supported currency:** `PLN`


### Example Payload with Billing Data

```json
{
  "amount": 120.50,
  "currency": "PLN",
  "directChannel": "paypo",
  "customer": {
    "email": "customer@example.com",
    "ip": "1.2.3.4",
    "countryCode": "PL"
  },
  "billing": {
    "name": "Jan",
    "surname": "Kowalski",
    "street": "Sunny Street",
    "building": "4",
    "city": "Warsaw",
    "postalCode": "00-001",
    "country": "PL"
  },
  "antifraud": {
    "useragent": "Mozilla/5.0..."
  }
}
```