# Boost

**In 2017, Boost launched its digital wallet with support from Axiata Digital, a digital telecommunication and infrastructure group in Asia. Users can use an app through which they can choose between a basic wallet and a premium wallet, which determine the balance limit and transaction limit.**

## **Features**

| Processing currencies      | MYR,GBP,USD,EUR                          |
| -------------------------- | ---------------------------------------- |
| Settlement currencies      | GBP,USD,EUR,HKD                          |
| Minimum transaction amount | 0.01 MYR                                 |
| Maximum transaction amount | 5,000.00 MYR |
| Refunds                    | ✅                                        |
| Partial Refunds            | ✅                                        |
| Multiple partial refund    | ❌                                        |
| Chargeback                 | ❌                                        |

# **Integration Method**

**Payment method enumeration values:** **`boost`**

**There is integration method for Boost**

1. Direct API
2. Checkout

## **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 **`boost`** to the list of payment method types.

***Request***

```JSON
{
    "amount":200,
    "currency":"USD",
    "confirm":true,
    "payment_method_options":{
        "boost":{
            "terminal_type":"WEB"
        }
    },
    "payment_method_data" : {
        "type":"boost"
    },
    "return_url":"https://wooshpay.com"
}
```

***Response***

```JSON
{
    "id": "pi_1744691520084115456",
    "object": "payment_intent",
    "created": 1704801848000,
    "livemode": false,
    "currency": "USD",
    "amount": 200,
    "status": "requires_action",
    "client_secret": "pi_1744691520084115456_secret_aQEpQKOc8Cz1QlZRR6Q7Xmil",
    "next_action": {
        "type": "boost_handle_redirect",
        "boost_handle_redirect": {
            "url": "https://psp.ac.alipay.com/page/simulation-wallet/acwallet/alipayconnectcode.html?code=281666040096G2L30bsyA304Wp1jz6k2swi6&pspName=BOOST&loadMode=2&needPull=false"
        }
    },
    "payment_method_types": [
        "boost"
    ],
    "confirmation_method": "automatic",
    "payment_method_options": {
        "boost": {
            "terminal_type": "WEB"
        }
    },
    "return_url": "https://wooshpay.com",
    "payment_method": "pm_1744691519979257856",
    "capture_method": "automatic"
}
```

## **Checkout**

### Payment flow

1. Customer selects Boost from the list of payment methods available and clicks on the Pay botton


![18a77133-227c-45f1-b71a-fe006b04b023.png](https://api.apifox.com/api/v1/projects/1296482/resources/418607/image-preview)

2. Customers will be redirected to Boost's page. Scan QR and approve the payment 

### [Create a Session](api-42654181)

***Request*** 

```JSON
{
    "cancel_url": "www.wooshpay.com",
    "mode": "payment",
    "success_url": "https://wooshpay.com/",
    "payment_method_types": ["truemoney"],
    "line_items": [
        {
            "price_data": {
                "currency": "MYR",
                "unit_amount": 2000,
                "product_data": {
                    "name": "apple"
                },
                "billing_scheme": "testscheme",
                "lookup_key": "test_lookup_key"
            },
            "quantity": 1
        }
    ]
}
```

***Response***

```JSON
{
    "id": "cs_1680921737639755776",
    "object": "checkout.session",
    "created": 1689597947000,
    "livemode": false,
    "currency": "MYR",
    "customer": "",
    "mode": "payment",
    "status": "open",
    "url": "https://checkouttest.wooshpay.com/pay/cs_test_1680921737639755776?key=pk_test_NTE2Njg1MDgwNDUzOTY4MDc2ODAxOm9Oa3pjN043U2dYWE84VVhGZmF4cThvTTE2ODY2MzgyOTYzMjU",
    "cancel_url": "www.wooshpay.com",
    "line_items": {
        "object": "list",
        "data": [
            {
                "id": "li_1680921737673310208",
                "object": "item",
                "currency": "MYR",
                "description": "apple",
                "price": {
                    "id": "price_1680921737681698816",
                    "object": "price",
                    "created": 1689597947000,
                    "livemode": false,
                    "active": false,
                    "currency": "MYR",
                    "product": {
                        "id": "prod_1680921737694281728",
                        "object": "product",
                        "created": 1689597947000,
                        "livemode": false,
                        "active": false,
                        "name": "apple",
                        "updated": 1689597947000
                    },
                    "type": "one_time",
                    "unit_amount": 2000,
                    "billing_scheme": "per_unit",
                    "lookup_key": "test_lookup_key"
                },
                "quantity": 1,
                "amount_subtotal": 2000,
                "amount_total": 2000
            }
        ]
    },
    "payment_intent": "pi_1680921737866248192",
    "payment_method_types": [
        "truemoney"
    ],
    "payment_status": "unpaid",
    "success_url": "https://wooshpay.com/",
    "amount_subtotal": 2000,
    "amount_total": 2000,
    "billing_address_collection": "auto",
    "expires_at": 1689684346928,
    "payment_link": "",
    "client_secret": "pi_1680921737866248192_secret_bKslLOpffohD4ni828W4Ilpu"
}
```

# **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.
