DeleteCard Method
Description
The DeleteCard method deletes a registered cards details from the database.
Action
Style
Document
Input (Literal)
The input of this method is the document element DeleteCardRequest having the structure defined by the following table.
ELEMENT |
TYPE |
SIZE(MAX) |
DESCRIPTION |
MessageHeader |
|
|
|
MessageDateTime |
datetime |
The message timestamp. |
|
MessageID |
string |
50 |
A unique identifier to identify the message. |
Channel |
string |
50 |
An identifier to identify the source of the message. |
DeleteCardRequest |
|
|
|
MerchantID |
string |
50 |
A unique identifier to identify the merchant’s payment profile. |
MerchantUserID |
string |
50 |
The merchant's identifier for the user |
Card |
A token that can be used to identify the captured card in subsequent transactions. |
Output (Literal)
The output of this method is the document element DeleteCardResponse having the structure defined by the following table.
ELEMENT |
TYPE |
SIZE(MAX) |
DESCRIPTION |
MessageHeader |
|
|
|
MessageDateTime |
datetime |
The message timestamp. |
|
MessageID |
string |
50 |
A unique identifier to identify the message. |
Channel |
string |
50 |
An identifier to identify the source of the message. |
DeleteCardResponse |
|
|
|
TransactionStatus |
TransactionStatusType |
The transaction status (Success and Failure) |
|
ResponseDetail |
The transaction result detail. |
Sample Messages
Request
<soapenv:Envelope
xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/""
xmlns:v1=""http://www.ecentricswitch.co.za/paymentgateway/v1"">
<soapenv:Header>
<v1:MessageHeader></v1:MessageHeader>
</soapenv:Header>
<soapenv:Body>
<DeleteCardRequest
xmlns=""http://www.ecentricswitch.co.za/paymentgateway/v1"">
<MerchantID>8B67BF88-BB8D-4EB5-ADFC-0F5C97C7ED67</MerchantID>
<MerchantUserID>978e566b-d62a-42c0-9843-381b3588f333</MerchantUserID>
<Card>
<v1:Token>081C1396-493D-4E09-81F9-749CE53E0CDE</v1:Token>
</Card>
</DeleteCardRequest>
</soapenv:Body>
</soapenv:Envelope>
Response
<s:Envelope
xmlns:s=""http://schemas.xmlsoap.org/soap/envelope/"">
<s:Header>
<h:MessageHeader
xmlns:h=""http://www.ecentricswitch.co.za/paymentgateway/v1""
xmlns=""http://www.ecentricswitch.co.za/paymentgateway/v1""
xmlns:xsd=""http://www.w3.org/2001/XMLSchema""
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"">
<MessageDateTime>2024-11-07T12:35:33.26</MessageDateTime>
<MessageID>BE33C5CD-6159-447C-8E4E-39BDA6A533B0</MessageID>
<Channel xsi:nil=""true""/>
</h:MessageHeader>
</s:Header>
<s:Body
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xmlns:xsd=""http://www.w3.org/2001/XMLSchema"">
<DeleteCardResponse
xmlns=""http://www.ecentricswitch.co.za/paymentgateway/v1"">
<TransactionStatus>Success</TransactionStatus>
<ResponseDetail>
<Source>ECS</Source>
<Code>0</Code>
<Description/>
<ClientMessage/>
</ResponseDetail>
</DeleteCardResponse>
</s:Body>
</s:Envelope>"