# ShopeePay

**ShopeePay has experienced significant** **grow in** **South East Asia e-wallet market, since its official launch in 2020,. In a survey conducted by** **Indonesia** **local media Bisnis Indonesia, 76% of the respondents reported to have used ShopeePay.**

## **Features**

| Processing currencies   | IDR,MYR,THB  |
| ----------------------- | ---- |
| Settlement currencies   | EUR  |
| Maximum transaction amount | 5,000 MYR /7,000THB|
| Refunds                 | ✅    |
| Partial Refunds         | ✅    |
| Multiple partial refund | ❌    |
| Chargeback              | ❌    |

# **Integration Method**

**Payment method enumeration values:** **`shopeepay`**

**There** **is** **integration method for ShopeePay**

1. Direct API

## **Direct** **API** 

### **How to integration**

For direct API integration, you can create a PaymentIntent and get url in only one step. The following is the demo of creating payment intent:

[**Create a PaymentIntent**](api-42631218)

A PaymentIntent is an object that represents your intent to collect payment from your customer and tracks the lifecycle of the payment process. Create a PaymentIntent on your server and specify the amount to collect and a supported currency. If you have an existing Payment Intents integration, add **`shopeepay`** to the list of payment method types.

***Request***

```JSON
{
    "amount":100,
    "currency":"MYR",
    "confirm":true,
    "payment_method_data" : {
        "type":"shopeepay"
    },
    "return_url":"https://your.website"
}
```

***Response***

```JSON
{
    "id": "pi_1670649173596176384",
    "object": "payment_intent",
    "created": 1687148777000,
    "livemode": false,
    "currency": "MYR",
    "amount": 100,
    "status": "requires_action",
    "client_secret": "pi_1670649173596176384_secret_lgvuBbzHLiCEvfbg0j21Abhu",
    "next_action": {
        "type": "shopeepay_handle_redirect",
        "shopeepay_handle_redirect": {
            "url": "https://apitest.wooshpay.com/v1/receives/c12/pay/pi_1670649173596176384"
        }
    },
    "payment_method_types": [
        "shopeepay"
    ],
    "confirmation_method": "automatic",
    "return_url": "https://your.website",
    "payment_method": "pm_1670649173478735872",
    "capture_method": "automatic"
}
```

# **Next step**

You can add more features to your integration as needed

## [Create a Webhook](doc-2517709)

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.

## [Create a Refund](api-51369554)

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.
