際際滷

際際滷Share a Scribd company logo
Document for P2B Integration
Mandatory Information required to start the integration Process:
Live Environment posting URL https://secure.paytm.in/P2B?JsonData=
Test Environment posting URL https://pguat.paytm.com/P2B?JsonData=
SN Field Name Field Type Length(Max) Description IsMandatory
1 BANK_ACC_NO N 1-30 Y
2 IFSC_CODE N 11 Y
3 ACC_TYPE A Y
4 MOBILE_NO AN 1-70 Y
5 SENDER_NAME AN 1-70 Y
6 AMOUNT N 1-20 -.00 Y
7 CURRENCY Char 3 Always INR Y
8 MID Char 1-20 Y
Y
9 ORDER_ID AlphaNumeric 20
10 REQUEST_TYPE Char 6 P2B_S2S always Y
11 CHANNEL Char 6 WEB always Y
12 REMARKS Char 30 Y
13 CHECKSUM AlphaNumeric Y
JSON Request Template
{
"BANK_ACC_NO": "06310120008264",
"IFSC_CODE": "KKBK0000958",
"ACC_TYPE": "10",
"MOBILE_NO": "8587830632",
"SENDER_NAME": "PRAVEEN",
"AMOUNT": "20",
"CURRENCY": "INR",
"MID": "klbGlV59135347348753",
"ORDER_ID": "ORDER488869808",
"REQUEST_TYPE": "P2B_S2S",
"CHANNEL": "WEB",
"REMARKS": "Txn",
"CHECKSUM":
"v04FL234ZASILOACkHpIJ3nUPFAqwzzdXjziK2SQR8rBCEK/wZKqrGLjkJDSA0r2GnwQHnzibwLEh3eOoPiZ
M3MOJ+u5XGoqSS3FoyiM29Y="
}
Checksum Parameter:
checksummap.put("BANK_ACC_NO", p2bInputTO.getBankAccntNum());
checksummap.put("IFSC_CODE",p2bInputTO.getIfscCode() );
checksummap.put("ACC_TYPE", p2bInputTO.getAccntType());
checksummap.put("MOBILE_NO",p2bInputTO.getMobNum() );
checksummap.put("SENDER_NAME", p2bInputTO.getSenderName());
checksummap.put("AMOUNT", p2bInputTO.getAmount());
checksummap.put("CURRENCY",p2bInputTO.getCurrency() );
checksummap.put("MID", p2bInputTO.getMid());
checksummap.put("ORDER_ID", p2bInputTO.getOrderId());
checksummap.put("REQUEST_TYPE", p2bInputTO.getRequestType());
checksummap.put("REMARKS", p2bInputTO.getRemarks());
Response
SN Field Name Field Type Length(Max) Description IsMandatory
1 PG_TXN_ID N 15 Y
2 BANK_TXN_ID N 15 Y
3 BANK_ACC_NO A 1-30 Y
4 MOBILE_NO AN 1-70 Y
6 AMOUNT N 1-20 -.00 Y
7 CURRENCY Char 3 Always INR Y
8 MID Char 1-20 Y
Y
9 ORDER_ID AlphaNumeric 20
10 REQUEST_TYPE Char 6 P2B_S2S always Y
11 TXN_STATUS Char 30 Y
12 RESPCODE N Y
13 TXN_MSG Char Y
12 CHECKSUM AlphaNumeric Y
Response:
{
"PG_TXN_ID": "20617",
"BANK_TXN_ID": "20617",
"BANK_ACC_NO": "06310120008264",
"MOBILE_NO": "8587830632",
"AMOUNT": "20",
"CURRENCY": "INR",
"MID": "klbGlV59135347348753",
"ORDER_ID": "ORDER488869808",
"REQUEST_TYPE": "P2B_S2S",
"TXN_STATUS": "FAILED",
"RESPCODE": "402",
"TXN_MSG": "Invalid Response From Bank",
"CHECKSUM":
"sJ9KGJ7POyu+COiWnE0K3ZqPdtNFc3mqMOWQ+PtPDBNHEMFevppBLNtObSmVqCLDAeo+uxyre/mnkN84xm
dUZl3nHoDcWnNPd4CMLV9+Fts="
}
Response Checksum Generation:
TreeMap<String,String> checksummap=new TreeMap<String, String>();
checksummap.put("PG_TXN_ID",p2bInputTO.getTxnId());
checksummap.put("BANK_TXN_ID",p2bInputTO.getTxnId());
checksummap.put("BANK_ACC_NO", p2bInputTO.getBankAccntNum());
checksummap.put("MOBILE_NO",p2bInputTO.getMobNum() );
checksummap.put("AMOUNT", p2bInputTO.getAmount());
checksummap.put("CURRENCY",p2bInputTO.getCurrency() );
checksummap.put("MID", p2bInputTO.getMid());
checksummap.put("ORDER_ID", p2bInputTO.getOrderId());
checksummap.put("REQUEST_TYPE", p2bInputTO.getRequestType());
checksummap.put("TXN_STATUS", p2bInputTO.getTxnstatus());
checksummap.put("RESPCODE", p2bInputTO.getRespcode());
checksummap.put("TXN_MSG", p2bInputTO.getRespMessage());

More Related Content

P2 b api

  • 1. Document for P2B Integration Mandatory Information required to start the integration Process: Live Environment posting URL https://secure.paytm.in/P2B?JsonData= Test Environment posting URL https://pguat.paytm.com/P2B?JsonData= SN Field Name Field Type Length(Max) Description IsMandatory 1 BANK_ACC_NO N 1-30 Y 2 IFSC_CODE N 11 Y 3 ACC_TYPE A Y 4 MOBILE_NO AN 1-70 Y 5 SENDER_NAME AN 1-70 Y 6 AMOUNT N 1-20 -.00 Y 7 CURRENCY Char 3 Always INR Y 8 MID Char 1-20 Y Y 9 ORDER_ID AlphaNumeric 20 10 REQUEST_TYPE Char 6 P2B_S2S always Y 11 CHANNEL Char 6 WEB always Y 12 REMARKS Char 30 Y 13 CHECKSUM AlphaNumeric Y JSON Request Template { "BANK_ACC_NO": "06310120008264", "IFSC_CODE": "KKBK0000958", "ACC_TYPE": "10", "MOBILE_NO": "8587830632", "SENDER_NAME": "PRAVEEN", "AMOUNT": "20", "CURRENCY": "INR", "MID": "klbGlV59135347348753", "ORDER_ID": "ORDER488869808", "REQUEST_TYPE": "P2B_S2S", "CHANNEL": "WEB", "REMARKS": "Txn",
  • 2. "CHECKSUM": "v04FL234ZASILOACkHpIJ3nUPFAqwzzdXjziK2SQR8rBCEK/wZKqrGLjkJDSA0r2GnwQHnzibwLEh3eOoPiZ M3MOJ+u5XGoqSS3FoyiM29Y=" } Checksum Parameter: checksummap.put("BANK_ACC_NO", p2bInputTO.getBankAccntNum()); checksummap.put("IFSC_CODE",p2bInputTO.getIfscCode() ); checksummap.put("ACC_TYPE", p2bInputTO.getAccntType()); checksummap.put("MOBILE_NO",p2bInputTO.getMobNum() ); checksummap.put("SENDER_NAME", p2bInputTO.getSenderName()); checksummap.put("AMOUNT", p2bInputTO.getAmount()); checksummap.put("CURRENCY",p2bInputTO.getCurrency() ); checksummap.put("MID", p2bInputTO.getMid()); checksummap.put("ORDER_ID", p2bInputTO.getOrderId()); checksummap.put("REQUEST_TYPE", p2bInputTO.getRequestType()); checksummap.put("REMARKS", p2bInputTO.getRemarks()); Response SN Field Name Field Type Length(Max) Description IsMandatory 1 PG_TXN_ID N 15 Y 2 BANK_TXN_ID N 15 Y 3 BANK_ACC_NO A 1-30 Y 4 MOBILE_NO AN 1-70 Y 6 AMOUNT N 1-20 -.00 Y 7 CURRENCY Char 3 Always INR Y 8 MID Char 1-20 Y Y 9 ORDER_ID AlphaNumeric 20 10 REQUEST_TYPE Char 6 P2B_S2S always Y 11 TXN_STATUS Char 30 Y 12 RESPCODE N Y 13 TXN_MSG Char Y 12 CHECKSUM AlphaNumeric Y
  • 3. Response: { "PG_TXN_ID": "20617", "BANK_TXN_ID": "20617", "BANK_ACC_NO": "06310120008264", "MOBILE_NO": "8587830632", "AMOUNT": "20", "CURRENCY": "INR", "MID": "klbGlV59135347348753", "ORDER_ID": "ORDER488869808", "REQUEST_TYPE": "P2B_S2S", "TXN_STATUS": "FAILED", "RESPCODE": "402", "TXN_MSG": "Invalid Response From Bank", "CHECKSUM": "sJ9KGJ7POyu+COiWnE0K3ZqPdtNFc3mqMOWQ+PtPDBNHEMFevppBLNtObSmVqCLDAeo+uxyre/mnkN84xm dUZl3nHoDcWnNPd4CMLV9+Fts=" } Response Checksum Generation: TreeMap<String,String> checksummap=new TreeMap<String, String>(); checksummap.put("PG_TXN_ID",p2bInputTO.getTxnId());
  • 4. checksummap.put("BANK_TXN_ID",p2bInputTO.getTxnId()); checksummap.put("BANK_ACC_NO", p2bInputTO.getBankAccntNum()); checksummap.put("MOBILE_NO",p2bInputTO.getMobNum() ); checksummap.put("AMOUNT", p2bInputTO.getAmount()); checksummap.put("CURRENCY",p2bInputTO.getCurrency() ); checksummap.put("MID", p2bInputTO.getMid()); checksummap.put("ORDER_ID", p2bInputTO.getOrderId()); checksummap.put("REQUEST_TYPE", p2bInputTO.getRequestType()); checksummap.put("TXN_STATUS", p2bInputTO.getTxnstatus()); checksummap.put("RESPCODE", p2bInputTO.getRespcode()); checksummap.put("TXN_MSG", p2bInputTO.getRespMessage());