Alfamart

Alfamart is one of Indonesia’s largest convenience store chains, founded in 1989. Alfamart provides services such as bill payments, mobile top-ups, and digital payment options, making it a convenient hub for everyday shopping and financial transactions. With its broad reach and focus on customer convenience, Alfamart has become a key player in Indonesia’s retail sector.

Payment method properties

Markets (consumer)ID
Processing currenciesIDR
Consumer currenciesIDR
Authentication methodsREDIRECT
Authentication timeout6 hours
Minimum payment amount10,000.00 IDR
Maximum payment amountFor non-KYC users: 2,000,000.00 IDR

For KYC users: 10,000,000.00 IDR
Payment instrumentPASSTHROUGH_WALLET
Recurring paymentsNo
Separate capturesNo
RefundNo
Refund validityN/A
DisputesNo
Settlement riskNo

Make an Alfamart payment

Alfamart payments follow our standardized REDIRECT payment flow. Enabling you to offer a seamless desktop experience. We recommend including all relevant settings for any authentication methods you support.

To create an Alfamart payment, you'll need to provide the following data at minimum when calling our payment charges endpoint:

FieldDescription
paymentMethodALFAMART
amount.valueThe amount to be paid in the smallest units of the currency used.
amount.currencyIDR
consumer.nameFull name of the consumer.
consumer.countryThe country of residence of the consumer.
consumer.emailThe consumer’s email address
consumer.phoneThe consumer phone number.
order.orderItems.nameThe order item name.
order.orderItems.quantityThe order item quantity.
order.orderItems.amountThe amount to pay for each individual item in the payment charge currency's smallest unit.
authenticationSettings: REDIRECT
settings.returnUrl
Specify the URL to which the consumer should be redirected after completing the payment. This is required for the REDIRECT payment flow.
📘

Guidance

To improve the consumer experience and payment traceability, consider including the following fields. See the API Reference for full details.

FieldsDescription
order.shippingAddressThe shipping address details can be provided to help with fraud prevention.

Request

POST /v1/payment-charges

{
    "paymentMethod": "ALFAMART",
    "amount": {
        "value": 1000000,
        "currency": "IDR"
    },
    "consumer": {
        "name": "John Smith",
        "country": "ID",
        "email": "[email protected]",
        "phone": "123456789"
    },
    "order": {
        "orderItems": [
            {
                "name": "Product Name 1",
                "quantity": 1,
                "amount": 1000000
            }
        ]
    },
    "authenticationSettings": [
        {
            "type": "REDIRECT",
            "settings": {
                "returnUrl": "https://www.webshop.com/order-results-page"
            }
        }
    ]
}

Response

You'll receive our standard payment charge response with the available authentication methods:

{
    "id": "charge_N6f5ZZ3fi46AHLhQd1baQ",
    "paymentMethod": "ALFAMART",
    "paymentMedium": "ECOMMERCE",
    "scheduleType": "UNSCHEDULED",
    "instrumentId": "instr_CKV7gGsyFt03uQPpO9a6X",
    "currency": "IDR",
    "country": "ID",
    "status": "AUTHENTICATION_PENDING",
    "consumer": {
        "name": "John Smith",
        "email": "[email protected]",
        "phone": "123456789",
        "country": "ID"
    },
    "order": {
        "orderItems": [
            {
                "name": "Product Name 1",
                "quantity": 1,
                "amount": 1000000
            }
        ],
        "industryData": []
    },
    "authenticationMethods": [
        {
            "details": {
                "requestUrl": "https://redirection-target.ppro.com",
                "requestMethod": "POST"
            },
            "type": "REDIRECT"
        }
    ],
    "authorizations": [
        {
            "id": "authz_IXMJXcvHQ10jFr2rmumw9",
            "amount": 1000000,
            "status": "AUTHENTICATION_PENDING",
            "createdAt": "2025-08-29T09:54:38.649Z",
            "updatedAt": "2025-08-29T09:54:38.649Z"
        }
    ],
    "captures": [],
    "refunds": [],
    "discards": [],
    "voids": [],
    "createdAt": "2025-08-29T09:54:38.344Z",
    "updatedAt": "2025-08-29T09:54:38.649Z",
    
    "_links": {
        "authorizations": {
            "href": "/v1/payment-charges/charge_N6f5ZZ3fi46AHLhQd1baQ/authorizations"
        },
        "captures": {
            "href": "/v1/payment-charges/charge_N6f5ZZ3fi46AHLhQd1baQ/captures"
        },
        "refunds": {
            "href": "/v1/payment-charges/charge_N6f5ZZ3fi46AHLhQd1baQ/refunds"
        },
        "discards": {
            "href": "/v1/payment-charges/charge_N6f5ZZ3fi46AHLhQd1baQ/discards"
        },
        "voids": {
            "href": "/v1/payment-charges/charge_N6f5ZZ3fi46AHLhQd1baQ/voids"
        }
    }
}

Pick the desired authentication method

REDIRECT

Redirect your consumer to the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl.
For example, with the value of https://redirection-target.ppro.com/ using the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod HTTP method.


Handling the payment result

REDIRECT

  1. After the consumer completes the payment, they are redirected to the returnUrl specified in the payment charge creation request.
  2. Upon redirect back to your site, retrieve the latest payment status by performing a GET /v1/payment-charges/{paymentChargeId}. Use the returned status field to determine and display the final payment outcome to the consumer.
  3. Additionally, webhooks are triggered to notify you of the payment result. This ensures you receive the outcome even if the consumer closes their browser or fails to return to your website.

Payment instrument

A PASSTHROUGH_WALLET instrument will be created for Alfamart, with no additional data provided.

Request

GET /v1/payment-instruments/{instrument-id}

Response

{
    "id": "charge_j6PLa5R2lyPw8MYTHpHMq",
    "type": "PASSTHROUGH_WALLET"
}

Sandbox testing

Alfamart uses PPRO's mock authenticator in sandbox. Learn more.