Purpose
This method captures an already made authorization to a client's card for the provided amount. The amount can be less than or equal to the authorized amount.
myPOS Checkout will check for:
- Valid myPOS Account number (also referred to as Client number)
- Valid Online Store ID (SID) corresponding with this myPOS Account number
- Valid status of the Online Store (enabled)
- Valid Currency and Amount
- Valid KeyIndex & corresponding Signature
- Valid OrderID
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 255 characters. |
SID | 000000000000010 | String | YES | Store ID (SID) - Reference number for the Merchant Store in the myPOS system |
WalletNumber | 61938166610 | String | YES | myPOS Client Number |
KeyIndex | 1 | Int | YES | Indicates which key pair is being used. |
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 |
---|---|---|---|
OrderID |
201203319999999 |
string |
Echo from IPCAuthorizationCapture |
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=IPCAuthorizationCapture&
IPCVersion=1.4&
IPCLanguage=EN&
SID=000000000000010&
WalletNumber=61938166610&
Amount=23.45&
Currency=EUR&
OrderID=2bfbe61a-6da2-459f-b91b-2ee754b2f255&
KeyIndex=1&
Signature=TuQ6nQJxWJ2T+sM6uzBqYYtOWdw+0ecHaRzujTJChWds/1HWK+kCcfKrAW9sN8xzsRBSZ2zH1uPMMIMgB3XqqHNbq06YhpD3XY/Ltp+ooc8xoq1jdajnUexC5JuDzTslCMKKFmW5vl0HsEkPltyxir0Z5AWpgOZkjqCPEr817
Example response
<ipc_response is-array="true">
<IPCmethod>IPCAuthorizationCapture</IPCmethod>
<IPCTrnref>97258</IPCTrnref>
<OrderID>2bfbe61a-6da2-459f-b91b-2ee754b2f255</OrderID>
<Status>0</Status>
<StatusMsg>Success</StatusMsg>
<Signature>v8KX5urEOyhIuUpnhv4dHpAFgoT8koaPi5Widg4QJJYVcoYimVXili+1wEZ7dkuATBzaI+DbbnfLAc93BGSvBVC0u+2Msyu1VzSl9s04MgXMJ6UmDXNg8kQDuPCZK9fnBHFKWDNG5F2/h2CK92t5h+SyHhNKlmxdd60o9w6PUrU=</Signature>
</ipc_response>
{
"IPCmethod": "IPCAuthorizationCapture",
"OrderID": "2bfbe61a-6da2-459f-b91b-2ee754b2f255",
"Status": 0,
"StatusMsg": "Success",
"Signature": "Eesba4zGWiNPF+um/Oci1MwqNJndGuFoRRISfT7RwWRzy3Vu34PP6sdHLTdLaOHEDUGSA0vwiqunmvX8CHXZKDPXTA5dVH2OnXowaMafOWdtUmQMTLmbLpwBNUB+r1sU8kPKkXje8fIPY7Cu8ro0n9JGQax4JGLtT1xAcfbO6MQ="
}