Alipay+ DocsAlipay+ Docs

Alipay+ payment codes

Code types and rules

Alipay+ payment codes consist of three types: Alipay+ 19-digit code, CGCP code, and AlipayCN/AlipayHK code. Each type of payment code complies with specific rules.

Refer to the table below for Alipay+ payment code types and corresponding rules.

Type

Rules

Alipay+ 19-digit code

  • Starts with 28.
  • The 3rd digit is fixed as 9, and the 6th digit from the end is fixed as 6.
  • Example: 2893612204263667830.

CGCP code

  • Starts with 25, 26, 27, 28, 29, or 30.
  • Contains 1-digit agreement ID (by default equals 1) and 3-digit routing numbers that are used to recognize the MPP. For what valid routing numbers are and how they match MPPs, see Mapping between MPP and routing number.
  • Example: 281010897274821897274821, where the routing number is 010.

AlipayCN/AlipayHK code

  • Length: 17 to 19 digits.
  • Starts with 25, 26, 27, 28, 29, or 30.
  • Example: 28024456785672301.

Mapping between MPP and routing number

The following table describes the mapping between a Mobile Payment Provider (MPP), its CGCP code value, and the corresponding routing number, where

  • The Name of MPP column indicates which MPP the CGCP code value belongs to.
  • The CGCP code value column indicates the formats of the CGCP code values.
  • The Routing number column indicates the part of the CGCP code value that can be used to construct the regular expression for payment routing. For example, the routing number of MPP 1 is 001, so the corresponding regular expression is /^(2[5-9]|30)\d001\d*$/ . For more information about how to route the payment, see Routing logic.

Name of MPP

CGCP code value

Routing number

MPP 1

281001[0-9]{18}

001

MPP 2

281003[0-9]{18}

003

MPP 3

281004[0-9]{18}

004

MPP 4

281005[0-9]{18}

005

MPP 5

281006[0-9]{18}

006

MPP 6

281007[0-9]{18}

007

MPP 7

281009[0-9]{18}

009

MPP 8

281010[0-9]{18}

010

MPP 9

281011[0-9]{18}

011

MPP 10

281012[0-9]{18}

012

MPP 11

281013[0-9]{18}

013

MPP 12

281014[0-9]{18}

014

MPP 13

281018[0-9]{18}

018

MPP 14

281019[0-9]{18}

019

MPP 15

281020[0-9]{18}

020

MPP 16

281021[0-9]{18}

021

MPP 17

281022[0-9]{18}

022

MPP 18

281023[0-9]{18}

023

MPP 19

281024[0-9]{18}

024

MPP 20

281025[0-9]{18}

025

MPP 21

281026[0-9]{18}

026

MPP 22

281027[0-9]{18}

027

MPP 23

281028[0-9]{18}

028

MPP 24

281029[0-9]{18}

029

MPP 25

281030[0-9]{18}

030

MPP 26

281031[0-9]{18}

031

MPP 27

281032[0-9]{18}

032

MPP 28

281033[0-9]{18}

033

MPP 29

281034[0-9]{18}

034

MPP 30

281035[0-9]{18}

035

MPP 31

281666[0-9]{18}

666

MPP 32

281801[0-9]{18}

801

MPP 33

281802[0-9]{18}

802

Note: The name of MPPs are de-identified in this table. For a full list, contact the Alipay+ Solution Architect Team.