Skip to main content
POST /v2/payments/linkPayCreate Creates a payment order that returns redirect URLs for app-to-app or browser-to-app payment flows. The user is redirected to the Rebell SuperApp to authorize the payment.

Use Case

Ideal for mobile apps, web checkout, and hybrid experiences where you want to redirect users to the Rebell app to complete payment.
1

Create Payment

Call linkPayCreate to create a payment order
2

Receive URLs

Get redirect URL and platform-specific app links
3

Redirect User

Redirect user to Rebell using the appropriate link
4

User Confirms

User authorizes payment in the Rebell app
5

Receive Webhook

Merchant receives payment status via webhook

Request Parameters

productCode
string
required
Payment product code assigned by Rebell.Max length: 32 characters
paymentRequestId
string
required
Merchant-generated unique identifier (idempotency key).Max length: 64 characters
paymentAmount
object
required
Payment amount details.
order
object
Order details.
settlementStrategy
object
Settlement configuration.
paymentNotifyUrl
string
Webhook URL for payment notifications.
paymentRedirectUrl
string
URL to redirect user after payment completion.

Response Parameters

result
object
required
Standard result object
redirectUrl
string
Deep link to open Rebell SuperApp directly
Platform-specific app link metadata
paymentId
string
Payment identifier for tracking and reconciliation

Example Request

{
  "productCode": "5105010010000100040",
  "paymentRequestId": "checkout-20240110-987",
  "paymentAmount": {
    "currency": "EUR",
    "value": "499"
  },
  "order": {
    "orderDescription": "Monthly subscription - Premium plan",
    "merchant": {
      "store": {
        "externalStoreId": "STORE-77"
      }
    }
  },
  "settlementStrategy": {
    "settlementCurrency": "EUR"
  },
  "paymentNotifyUrl": "https://merchant.example.com/webhooks/payment"
}

Example Response

{
  "result": {
    "resultCode": "SUCCESS",
    "resultStatus": "S",
    "resultMessage": "success"
  },
  "redirectUrl": "rebell://pay?orderToken=abcedf123...",
  "appLinks": {
    "android": {
      "applicationId": "com.rebell.superapp",
      "targetPath": "pay",
      "shortUrl": "https://app.rebellapp.com/p/abc123"
    },
    "ios": {
      "bundleId": "com.rebell.superapp",
      "targetPath": "pay",
      "shortUrl": "https://app.rebellapp.com/p/abc123"
    }
  },
  "paymentId": "2024011000123456"
}

Redirect Implementation

import { Linking, Platform } from 'react-native';

async function redirectToRebell(response) {
  const url = Platform.select({
    ios: response.appLinks.ios.shortUrl,
    android: response.appLinks.android.shortUrl,
    default: response.redirectUrl
  });

  const canOpen = await Linking.canOpenURL(url);
  if (canOpen) {
    await Linking.openURL(url);
  }
}

Result Codes

resultStatusresultCodeDescriptionAction
SSUCCESSOrder createdRedirect user to payment
FPARAM_ILLEGALInvalid parametersCheck request
FORDER_STATUS_INVALIDOrder in invalid stateCreate new order
FPAYMENT_IN_PROCESSPayment already processingWait for result
UUNKNOWN_EXCEPTIONUnknown errorRetry request

Inquiry Payment

Check payment status

Link Pay Guide

Complete integration guide