# Bank Transfer in United Kingdom

## Features

| Support Country/Region  | **United Kingdom** |
| ----------------------- | ------------------ |
| processing currency     | `GBP`              |
| settlement currency     | `GBP`              |
| refund                  | ✅                  |
| partial refund          | ✅                  |
| multiple partial refund | ✅                  |
| chargeback              | ❌                  |

# **Integration Method**

**Payment method enumeration values:** `bank_transfer_uk`

**There is one  integration method for bank transfer**

1. Checkout

## **Checkout** 

### Payment flow

1. Customer selects bank transfer from the list of payment methods available and fills in payment information


![image.png](https://api.apifox.com/api/v1/projects/1296482/resources/462734/image-preview)

1. Customers select the bank.


![下载.png](https://api.apifox.com/api/v1/projects/1296482/resources/462735/image-preview)

1. Customers scan to pay or continue on desktop to complete the payment.


![下载 (1).png](https://api.apifox.com/api/v1/projects/1296482/resources/462736/image-preview)

### Create a seesion

***Request*** [Create a Session](api-42654181)

```JSON
{
    "cancel_url": "https://google.com",
    "mode": "payment",
    "success_url": "https://google.com",
    "payment_method_types": [
        "bank_transfer_uk"
    ],
    "line_items": [
        {
            "price_data": {
                "currency": "GBP",
                "product": null,
                "unit_amount": 20000,
                "active": true,
                "metadata": {
                    "key1": "value1",
                    "key2": "value2"
                },
                "nickname": "apple",
                "product_data": {
                    "id": null,
                    "name": "apple",
                    "active": true,
                    "description": "very delicious",
                    "metadata": {
                        "key1": "value1",
                        "key2": "value2"
                    },
                    "url": "www.wooshpay.com"
                },
                "billing_scheme": "testscheme",
                "lookup_key": "test_lookup_key"
            },
            "quantity": 1
        }
    ]
}
```

***Response***

```JSON
{
    "id": "cs_1829053126154387456",
    "object": "checkout.session",
    "created": 1724915222000,
    "livemode": false,
    "currency": "GBP",
    "customer": "",
    "mode": "payment",
    "status": "open",
    "url": "https://checkouttest.wooshpay.com/pay/cs_test_1829053126154387456?key=cGtfdGVzdF9OVEUzTnpBM01qazBNVE14TnpJNU1qUTBNVFl4T25ORFFVVjRZMUZFVlVWdWMwRjBUMHBXT1dGdWFsQTRRakUzTVRFd01EazNOekF5TlRF",
    "cancel_url": "https://www.wooshpay.com",
    "line_items": {
        "object": "list",
        "data": [
            {
                "id": "li_1829053126234079232",
                "object": "item",
                "currency": "GBP",
                "description": "apple",
                "price": {
                    "id": "price_1829053126418628608",
                    "object": "price",
                    "created": 1724915222000,
                    "livemode": false,
                    "active": true,
                    "currency": "GBP",
                    "metadata": {
                        "key1": "value1",
                        "key2": "value2"
                    },
                    "nickname": "apple",
                    "product": {
                        "id": "prod_1829053126594789376",
                        "object": "product",
                        "created": 1724915222000,
                        "livemode": false,
                        "active": true,
                        "description": "very delicious",
                        "metadata": {
                            "key1": "value1",
                            "key2": "value2"
                        },
                        "name": "apple",
                        "url": "www.wooshpay.com",
                        "updated": 1724915222000
                    },
                    "type": "one_time",
                    "unit_amount": 20000,
                    "billing_scheme": "per_unit",
                    "lookup_key": "test_lookup_key"
                },
                "quantity": 1,
                "amount_subtotal": 20000,
                "amount_total": 20000
            }
        ]
    },
    "payment_intent": "pi_1829053128054407168",
    "payment_method_types": [
        "bank_transfer_uk"
    ],
    "payment_status": "unpaid",
    "success_url": "https://wooshpay.com/",
    "amount_subtotal": 20000,
    "amount_total": 20000,
    "billing_address_collection": "auto",
    "expires_at": 1725001622106,
    "payment_link": "",
    "client_secret": "pi_1829053128054407168_secret_HiZjz3X5bQE2izo2By6STu8B",
    "customer_creation": "if_required",
    "total_details": {
        "amount_discount": 0
    }
}
```

# **Next step**

You can add more features to your integration as needed

## Webhook

Listen to events on your WooshPay account so your integration can automatically trigger reactions. Create a webhook that mainly focuses on enabled_events and url.

## Refund

Create a refund to repay funds to your customer. You can also perform partial refunds, but not every payment method supports them. A partial refund is when you refund only part of the original transaction amount.
