Purpose

 

This method initiates an authorization for a particular amount in the specified currency for a stored card of a customer. The amount is reserved and can be captured instantly or after a period of time. The max period of time available before sending the IPCAuthorizationCapture method is limited based on the type of business.

myPOS Checkout API will check for:

  • Valid myPOS Account number (also referred to as Client number)
  • Valid Checkout Store ID (SID) corresponding with this myPOS Account number
  • Valid status of the Checkout (enabled)
  • Valid currency and amount
  • Valid KeyIndex & corresponding Signature 
  • Valid OrderID
  • Valid ItemName
  • Valid CardToken

 


Method Properties

Please note all properties must be in PascalCase!

 

Property

Typical value

Type

Required

Description

Amount 23.45 Double YES The amount of the payment requested.
Currency EUR A(3) YES ISO 3-character currency code. The currency for the payment should be registered and approved.
OrderID 20120331999999 String YES

Placeholder for the merchant. Used to put some data that will help the merchant to recognize for which order is the payment. Up to 80 characters.

SID  000000000000010  String  YES  Store ID (SID) - Reference number for the Merchant Checkout in the myPOS system
WalletNumber  61938166610   String YES  myPOS Client Number
KeyIndex  1 Int  YES  Indicates which key pair is being used.
AccountSettlement 11111111119 N(11) NO Account for payment settlement.
ItemName HP ProBook 6360b sticker  String YES

The item for which the authorization is being issued.

Note   String NO

Text associated with the authorization.

CardToken  287A....971E07 String YES

The token of the stored client's card.

OutputFormat XML String NO

Output format of data. The property can be “XML” or “JSON”. If it is not specified in the request, the default value is “XML”.

 

 

Response properties

Property

Typical value

Type

Description

Amount

23.45

Double

Echo from IPCAuthorization

Currency

EUR

A(3)

Echo from IPCAuthorization

OrderID

201203319999999

string

Echo from IPCAuthorization

IPCTrnref

12345678923

String

Used to uniquely identify a transaction in IPC. Used as a parameter for a subsequent refund of reversal if needed.

 


Example request

New lines and tabulators are included for better reading and do not exist in the POST request. 

 

IPCmethod=IPCAuthorization&
IPCVersion=1.4&
IPCLanguage=EN&
SID=000000000000010&
WalletNumber=61938166610&
Amount=23.45&
Currency=EUR&
OrderID=2bfbe61a-6da2-459f-b91b-2ee754b2f255&
CardToken=287ABEB971E07E61E5A043C1B48270EA88E2A5604DA120F522E24A4E44396F50&
KeyIndex=1&
ItemName=HP ProBook 6360b sticker&
Note=&
Signature=TuQ6nQJxWJ2T+sM6uzBqYYtOWdw+0ecHaRzujTJChWds/1HWK+kCcfKrAW9sN8xzsRBSZ2zH1uPMMIMgB3XqqHNbq06YhpD3XY/Ltp+ooc8xoq1jdajnUexC5JuDzTslCMKKFmW5vl0HsEkPltyxir0Z5AWpgOZkjqCPEr817

 

Example response

<ipc_response is-array="true">
    <IPCmethod>IPCAuthorization</IPCmethod>
    <IPCTrnref>97258</IPCTrnref>
    <OrderID>2bfbe61a-6da2-459f-b91b-2ee754b2f255</OrderID>
    <Amount>1.23</Amount>
    <Currency>EUR</Currency>
    <Status>0</Status>
    <StatusMsg>Success</StatusMsg>
    <Signature>hwJ0jFXsf3G8N9A2xHXr9mfuBsGGC4uVG35NNJbBf6Ogtn3nK4Y9axLxPtC0VDUnzfg17BYbRuWKAHcxHslUsbsA7c1WzNCue4cgFQVNkppkdkpr5YK5AQPxOzdTqfHzqyw5YvFXcJJLSpkr7BKk4cv3Q01QvtWziOdirbnysJc=</Signature>
</ipc_response>
{
    "IPCmethod": "IPCAuthorization",
    "IPCTrnref": "97387",
    "OrderID": "5fd84313-4106-4441-ab11-9708e2e0f9e3",
    "Amount": "1.23",
    "Currency": "EUR",
    "Status": 0,
    "StatusMsg": "Success",
    "Signature": "AgEFi47yDjdtsk/pOfsxfvJSFHnKC45onTH8FcJwuT4t9MQMcbClwQV7J0ibJ4V/IuQwDtsOTWknEn2rzS/SWLi6d42OKiUUW8kpQrzRe1/PTD4VVupIk+RFt8gRuQQ8ootHRgGeYklj0eqN0OxYXsybriy0FlJcGAYctV/v13g="
}