Skip to end of metadata
Go to start of metadata

Table of request-attributes

These attributes and values are allowed in object "request":

attribute

value

request

fixed value: 'creditcardcheck'

responsetype

fixed value: 'JSON'

storecarddata

fixed value: 'yes'

mode

mode for transactions, either 'live' or 'test'

encoding

your encoding, either 'ISO-8859-1' or 'UTF-8'

mid

your Merchant ID

aid

your Account ID

portalid

your Portal ID

checktype

optional configuration - valid for Deutsche Bahn only

Fixed value "TC" -> starting "creditcardcheck with travel cards"

hash

MD5 or sha2_384 hash over request values (alphabetical order) plus portal key in your PMI portal configuration.

e.g.:

  • aid: '10002', // your AID
  • encoding: 'UTF-8', // desired encoding
  • mid: '10001', // your MID
  • mode: 'live', // desired mode
  • portalid: '2000002', // your PortalId
  • request: 'creditcardcheck', // fixed value
  • responsetype: 'JSON', // fixed value
  • storecarddata: 'yes', // fixed value
  • PMI Portal key: '123456'

MD5('10002UTF-810001live2000002creditcardcheckJSONyes123456')

=5c4014cebeb361d9e186fd42c810b9b1

or

hash_hmac("sha384", "10002UTF-810001live2000002creditcardcheckJSONyes", "123456")

=1cf456bf692453613ebb992a3fb859cc347ddc7e94e2ca764efbe8b0089de6964ab1266df0831e59de89dc5291070fe7



  • No labels