Skip to content
Developer Tools
Accelerate development using AI assistants and tools

Debit-Payment

  • Endpoint: POST /v1.0/debit/payment
  • Tags: Indonesia SNAP

Parameters

FieldInTypeRequiredConstraintsDescription
Content-TypeheaderstringYesContent type, value always application/json
X-TIMESTAMPheaderstringYesTransaction date time, in format yyyy-MM-dd'T'HH:mm:ss.SSSXXX
X-SIGNATUREheaderstringYesSignature need to be generated with symmetricSignature or asymmetricSignature method
ORIGINheaderstringNoOrigin domain
X-PARTNER-IDheaderstringYesUnique identifier for partner was generated by payermax, or known as clientId
X-EXTERNAL-IDheaderstringYesUnique messaging reference identifier generated by merchant and should be unique within the same day
CHANNEL-IDheaderstringYesDevice identification on which the API services is currently being accessed by the end user (customer)

Parameter Examples

  • Content-Type: "application/json"
  • X-TIMESTAMP: ""
  • X-SIGNATURE: ""
  • ORIGIN: ""
  • X-PARTNER-ID: ""
  • X-EXTERNAL-ID: ""
  • CHANNEL-ID: ""

Request Body

Content-Type: application/json

FieldTypeRequiredConstraintsDescriptionEnum
merchantIdstringYesmaxLength: 64Merchant identifier that is unique per each merchant
partnerReferenceNostringYesmaxLength: 64Unique transaction identifier on partner system which assigned to each transaction
amountobjectYesTransaction amount
amount.valuestringYesThe order amount is passed in by the merchant. The decimal point supported by the currency of each country.
amount.currencystringYesmaxLength: 3Currency code, capital letter.
externalStoreIdstringNomaxLength: 64Store identifier to indicate to which store this payment belongs to
validUpTostringNoThe time when the payment will be automatically expired, in format yyyy-MM-dd'T'HH:mm:ss.SSSXXX
urlParamsarray[object]NoNotify URL that merchant must send the payment notification to
urlParams[].urlstringYesmaxLength: 512The URL
urlParams[].typestringYesmaxLength: 32URL Type:PAY_RETURN or PAY_NOTIFY
urlParams[].isDeeplinkstringYesmaxLength: 1Whther the URL is a deeplink URL or not:Y or N
payOptionDetailsarray[object]YesPayment option that will be used for this payment, this filed only supports passing one item currently
payOptionDetails[].payMethodstringNomaxLength: 64Payment Method. e.g. CREDIT_CARD
payOptionDetails[].payOptionstringNomaxLength: 64Payment option which shows the provider of this payment e.g. CREDIT_CARD_VISA
payOptionDetails[].additionalInfoobjectNo
payOptionDetails[].additionalInfo.payAccountInfoarray[object]NoPayment account info.Support collect payer’s account info on merchant side when specifying the payment method and target organization
payOptionDetails[].additionalInfo.payAccountInfo[].accountNoTypestringNomaxLength: 32account type:EMAIL,PHONE,ACCOUNT.
payOptionDetails[].additionalInfo.payAccountInfo[].accountNostringNomaxLength: 32The payment account registered by the user in the target institution under this payment method.
payOptionDetails[].additionalInfo.cardInfoobjectNoCard information
payOptionDetails[].additionalInfo.cardInfo.cardExpirationMonthstringNomaxLength: 2Card Expiration Date - month, two digits.
payOptionDetails[].additionalInfo.cardInfo.cardExpirationYearstringNomaxLength: 2Card Expiration Date - year, only the last two years are taken.
payOptionDetails[].additionalInfo.cardInfo.cardHolderFullNamestringNomaxLength: 64Cardholder’s Name.
payOptionDetails[].additionalInfo.cardInfo.cardIdentifierNostringNomaxLength: 19card ID, card number.
payOptionDetails[].additionalInfo.cardInfo.cvvstringNomaxLength: 4Card cvv, three digits for Visa and Master, four digits for AMEX.
payOptionDetails[].additionalInfo.cardInfo.dynamic3DSstringNomaxLength: 64ynamic 3ds (case insensitive) do3DS: Perform 3D Secure for this order. no3DS: Do not perform 3D Secure for this order. ext3DS: Use external 3DS results, suitable for merchants who have integrated 3DS services. The info3DSecure object is required when using this value. If no value is passed or other values are passed in, PayerMax will determine whether to initiate 3ds
payOptionDetails[].additionalInfo.cardInfo.cardOrgstringNomaxLength: 32Card organization, required when paymentMethod is CARD and card information is not sent For details
payOptionDetails[].additionalInfo.paymentTokenIDstringNomaxLength: 64When paying with card token
payOptionDetails[].additionalInfo.buyerInfoobjectNobuyer information. when additionalInfo.integrate is Direct_Payment, this filed is Mandatory
payOptionDetails[].additionalInfo.buyerInfo.firstNamestringNomaxLength: 64first name of the user.
payOptionDetails[].additionalInfo.buyerInfo.addressstringNomaxLength: 1024user’s address.
payOptionDetails[].additionalInfo.buyerInfo.citystringNomaxLength: 64user’s city.
payOptionDetails[].additionalInfo.buyerInfo.idNostringNomaxLength: 64Id NO.
payOptionDetails[].additionalInfo.buyerInfo.idTypestringNomaxLength: 32Id type.
payOptionDetails[].additionalInfo.buyerInfo.regionstringNomaxLength: 64user’s region.
payOptionDetails[].additionalInfo.buyerInfo.taxNostringNoFor tax number, please refer to 【Personal Identification】 Note:This field is required for the country of Brazil, which is the Brazilian ID number.
payOptionDetails[].additionalInfo.buyerInfo.taxTypestringNoFor tax types, please refer to 【Personal Identification】 Note:This field of Brazil country must be passed into CPF
payOptionDetails[].additionalInfo.buyerInfo.zipCodestringNomaxLength: 16post code.
payOptionDetails[].additionalInfo.buyerInfo.lastNamestringNomaxLength: 64last name of the user.
payOptionDetails[].additionalInfo.buyerInfo.phoneNostringNomaxLength: 32phone number of the user.
payOptionDetails[].additionalInfo.buyerInfo.emailstringNomaxLength: 255
payOptionDetails[].additionalInfo.buyerInfo.clientIpstringYesuser’s IP address.
payOptionDetails[].additionalInfo.buyerInfo.userAgentstringNoUser browser information.
additionalInfoobjectYesAdditional information
additionalInfo.versionstringYesmaxLength: 8API version. Current value: 1.4
additionalInfo.keyVersionstringYesmaxLength: 8Signature Algorithm Version, Current value: 1
additionalInfo.integratestringYesmaxLength: 16Hosted_Checkout or Direct_Payment
additionalInfo.terminalTypestringNomaxLength: 3Device terminal, the values is WEB, WAP, APP; when integrate is Direct_Payment, this value is required
additionalInfo.subjectstringYesmaxLength: 256Order title or product information, avoid using pure numbers, such as using PayerMax_Hosted_Payment_Page, it will be displayed on the user payment page Note: Brazil Pix cannot exceed 43 digits
additionalInfo.countrystringYesmaxLength: 2Country code, in uppercase letters.
additionalInfo.userIdstringYesmaxLength: 64The user ID by the merchant, needs to ensure the uniqueness of each user.After the payment method is saved, the payment method will be recommended according to the userId.
additionalInfo.referralCodestringYesmaxLength: 32According to the needs of merchants, add recommended payment method dimensions, such as device ID, device fingerprint, etc., before using, please contact the docking staff.
additionalInfo.languagestringYesmaxLength: 16Cashier page language
additionalInfo.referencestringYesmaxLength: 512Customized data for merchant, will be returned in Callback Notification and Inquiry.
additionalInfo.goodsDetailsarray[object]YesThe goods that the user buys. A list can be submitted. Note:E-commerce industy needs to send.If the object is passed in, the inner required fields must be passed in
additionalInfo.goodsDetails[].goodsIdstringYesmaxLength: 64goods ID.
additionalInfo.goodsDetails[].goodsCategorystringYesgoods Category. Note:E-commerce industy needs to send.
additionalInfo.goodsDetails[].goodsNamestringYesmaxLength: 128goods name.
additionalInfo.goodsDetails[].quantitystringYesmaxLength: 16goods quantity
additionalInfo.goodsDetails[].pricestringYesmaxLength: 20Price set by the merchant system.
additionalInfo.goodsDetails[].goodsCurrencystringYesmaxLength: 3goods currency, capital letters,see【Supported Country/Region and Currency】
additionalInfo.goodsDetails[].showUrlstringYesmaxLength: 128goods URL. Note:E-commerce industy needs to send.
additionalInfo.shippingInfoobjectYesshipping info. Note:E-commerce industy needs to send.If the object is passed in, the inner required fields must be passed in
additionalInfo.shippingInfo.firstNamestringYesmaxLength: 64biller name.
additionalInfo.shippingInfo.middleNamestringYesmaxLength: 64biller middle name.
additionalInfo.shippingInfo.lastNamestringYesmaxLength: 64biller last name.
additionalInfo.shippingInfo.phoneNostringYesmaxLength: 32biller phone no.
additionalInfo.shippingInfo.emailstringYesmaxLength: 255biller email address.
additionalInfo.shippingInfo.address1stringYesmaxLength: 1024Billing Address 1.
additionalInfo.shippingInfo.address2stringYesmaxLength: 1024Billing Address 2.
additionalInfo.shippingInfo.citystringYesmaxLength: 64City of billing address.
additionalInfo.shippingInfo.regionstringYesmaxLength: 64Region of billing address.
additionalInfo.shippingInfo.statestringYesmaxLength: 32State of billing address Shipping is required in Canada, USA, UK, Australia.
additionalInfo.shippingInfo.countrystringYesmaxLength: 2Country of billing address.
additionalInfo.shippingInfo.zipCodestringYesmaxLength: 32Billing Address Zip Code.
additionalInfo.billingInfoobjectYesBilling Information.Note:If the object is passed in, the inner required fields must be passed in
additionalInfo.billingInfo.firstNamestringYesmaxLength: 64biller name.
additionalInfo.billingInfo.middleNamestringYesmaxLength: 64biller middle name.
additionalInfo.billingInfo.lastNamestringYesmaxLength: 64biller last name.
additionalInfo.billingInfo.emailstringYesmaxLength: 255biller email address.
additionalInfo.billingInfo.phonestringYesmaxLength: 32biller phone no.
additionalInfo.billingInfo.address1stringYesmaxLength: 255Billing Address 1.
additionalInfo.billingInfo.address2stringYesmaxLength: 1024Billing Address 2.
additionalInfo.billingInfo.citystringYesmaxLength: 64City of billing address.
additionalInfo.billingInfo.regionstringYesmaxLength: 64Region of billing address.
additionalInfo.billingInfo.statestringYesmaxLength: 32State of billing address Shipping is required in Canada, USA, UK, Australia.
additionalInfo.billingInfo.countrystringYesmaxLength: 2Country of billing address.
additionalInfo.billingInfo.zipCodestringYesmaxLength: 16Billing Address Zip Code.
additionalInfo.riskParamsobjectYesRisk control business data, see【Risk Information】
additionalInfo.riskParams.trustedUserstringYes
additionalInfo.riskParams.isGueststringYesmaxLength: 1
additionalInfo.riskParams.isAgentstringYesmaxLength: 1
additionalInfo.riskParams.registerNostringYes
additionalInfo.envInfoobjectYesenvironmental information
additionalInfo.envInfo.deviceIdstringYesMerchant device unique identifier
additionalInfo.envInfo.deviceLanguagestringYesDevice default language
additionalInfo.envInfo.screenHeightstringYesdevice height
additionalInfo.envInfo.screenWidthstringYesdevice width

Example

json
{
  "merchantId": "{{newMerchantNo}}",
  "partnerReferenceNo": "{{$uuid}}",
  "subMerchantId": "subMerchant.subMerchantNo",
  "amount": {
    "value": "100000.00",
    "currency": "IDR"
  },
  "externalStoreId": "shopInfo.shopId",
  "validUpTo": "2020-12-23T08:31:11+07:00",
  "urlParams": [
    {
      "url": "https://www.payermax.com",
      "type": "PAY_RETURN",
      "isDeeplink": "N"
    },
    {
      "url": "https://uft.shareitpay.in/fpx/request/snap",
      "type": "PAY_NOTIFY",
      "isDeeplink": "N"
    }
  ],
  "payOptionDetails": [
    {
      "payMethod": "",
      "payOption": "",
      "additionalInfo": {
        "payAccountInfo": [
          {
            "accountNoType": "EMAIL",
            "accountNo": "review@cybersource.com"
          },
          {
            "accountNoType": "PHONE",
            "accountNo": "081210855376"
          }
        ],
        "buyerInfo": {
          "firstName": "John",
          "lastName": "Smith",
          "phoneNo": "903124360628",
          "email": "review@cybersource.com",
          "clientIp": "124.156.108.193",
          "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
        }
      }
    }
  ],
  "additionalInfo": {
    "version": "1.4",
    "keyVersion": "1",
    "integrate": "Hosted_Checkout",
    "terminalType": "APP",
    "subject": "subject 40 Diamonds",
    "country": "ID",
    "userId": "victor003",
    "referralCode": "referralCode",
    "language": "en",
    "reference": "reference",
    "goodsDetails": [
      {
        "goodsId": "goodsId1",
        "goodsName": "goodsName1 40 Diamonds",
        "quantity": "1",
        "price": "10000",
        "goodsCurrency": "IDR",
        "showUrl": "https://img-cdn.jollymax.com/shoplay365/prod/upload/picture/20221201031859549_Mobapay%20diskon.jpg"
      },
      {
        "goodsId": "goodsId2",
        "goodsName": "goodsName2 40 Diamonds",
        "quantity": "1",
        "price": "10000",
        "goodsCurrency": "IDR",
        "showUrl": "https://img-cdn.jollymax.com/shoplay365/prod/upload/picture/20221201031859549_Mobapay%20diskon.jpg"
      }
    ],
    "shippingInfo": {
      "firstName": "Victor",
      "middleName": "",
      "lastName": "Yang",
      "phoneNo": "081210855376",
      "email": "review@cybersource.com",
      "address1": "Heathcoat House, 20 Savile Row",
      "address2": "",
      "city": "London",
      "region": "",
      "state": "LND",
      "country": "GB",
      "zipCode": "W1S 3PR"
    },
    "billingInfo": {
      "firstName": "wuji",
      "middleName": "",
      "lastName": "zhang",
      "email": "review@cybersource.com",
      "phone": "081210855376",
      "address1": "7148 Pacific Blvd",
      "address2": "",
      "city": "Huntington Park",
      "region": "",
      "state": "CA",
      "country": "US",
      "zipCode": "90225"
    },
    "riskParams": {
      "trustedUser": "Y",
      "isGuest": "Y",
      "isAgent": "Y",
      "registerNo": "registerNo123456"
    }
  }
}

Responses

200

FieldTypeRequiredConstraintsDescriptionEnum
referenceNostringYesmaxLength: 64Transaction identifier on payermax system
additionalInfoobjectYesAdditional information
additionalInfo.latestTransactionStatusstringYesmaxLength: 32Category code for the status of the transaction. The values include: 00 = Success, the order has been successfully in final state and paid 03 = Pending, the order is in process, not in final state, payment is success 05 = Cancelled, the order has been closed 06 = Failed, the order has been failed
webRedirectUrlstringYesmaxLength: 2048payermax checkout URL
partnerReferenceNostringYesmaxLength: 64Unique transaction identifier on partner system which assigned to each transaction
responseMessagestringYesmaxLength: 150response msg
responseCodestringYesmaxLength: 7response code

Response Example

json
{
  "referenceNo": "T2024030612031450000064",
  "additionalInfo": {
    "latestTransactionStatus": "PENDING"
  },
  "webRedirectUrl": "https://cashier-n-ind-test.payermax.id/v2/index.html#/payments?merchantId=P05010114269706&merchantAppId=3d99d87a345c4c38aa23cfd7dde01592&country=ID&tradeToken=T2024030612031450000064&language=id&token=8673428cf610486a88c6720b191dc0a5&amount=100000&currency=IDR&version=1.4&cashierId=T2024030612031450000064&frontCallbackUrl=https%3A%2F%2Fwww.payermax.com&pmaxLinkV=1",
  "partnerReferenceNo": "9755fe22-aa4a-4bae-a064-c5b850156ef5",
  "responseMessage": "Success.",
  "responseCode": "2005400"
}

Was this page helpful?

Thank you for your help in improving PayerMax Product Docs!

Released under the MIT License.