HCService
Click here for a complete list of operations.
InitializeCardInfo
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /hcws/hcservice.asmx HTTP/1.1 Host: hc.mercurycert.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.mercurypay.com/InitializeCardInfo" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <InitializeCardInfo xmlns="http://www.mercurypay.com/"> <request> <MerchantID>string</MerchantID> <Password>string</Password> <Frequency>string</Frequency> <ProcessCompleteUrl>string</ProcessCompleteUrl> <ReturnUrl>string</ReturnUrl> <DisplayStyle>string</DisplayStyle> <BackgroundColor>string</BackgroundColor> <FontColor>string</FontColor> <FontFamily>string</FontFamily> <FontSize>string</FontSize> <LogoUrl>string</LogoUrl> <PageTitle>string</PageTitle> <SecurityLogo>string</SecurityLogo> <SubmitButtonText>string</SubmitButtonText> <CancelButtonText>string</CancelButtonText> <Keypad>string</Keypad> <DefaultSwipe>string</DefaultSwipe> <CardHolderName>string</CardHolderName> <OperatorID>string</OperatorID> <ButtonBackgroundColor>string</ButtonBackgroundColor> <ButtonTextColor>string</ButtonTextColor> <JCB>string</JCB> <Diners>string</Diners> <CUP>string</CUP> <CardEntryMethod>string</CardEntryMethod> <SubmitButtonDefaultImageUrl>string</SubmitButtonDefaultImageUrl> <SubmitButtonHoverImageUrl>string</SubmitButtonHoverImageUrl> <CancelButtonDefaultImageUrl>string</CancelButtonDefaultImageUrl> <CancelButtonHoverImageUrl>string</CancelButtonHoverImageUrl> <PageTimeoutDuration>string</PageTimeoutDuration> <CancelButton>string</CancelButton> <ForceManualTablet>string</ForceManualTablet> <LaneID>string</LaneID> <TokenType>string</TokenType> </request> </InitializeCardInfo> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <InitializeCardInfoResponse xmlns="http://www.mercurypay.com/"> <InitializeCardInfoResult> <ResponseCode>int</ResponseCode> <CardID>string</CardID> <Message>string</Message> </InitializeCardInfoResult> </InitializeCardInfoResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /hcws/hcservice.asmx HTTP/1.1 Host: hc.mercurycert.net Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <InitializeCardInfo xmlns="http://www.mercurypay.com/"> <request> <MerchantID>string</MerchantID> <Password>string</Password> <Frequency>string</Frequency> <ProcessCompleteUrl>string</ProcessCompleteUrl> <ReturnUrl>string</ReturnUrl> <DisplayStyle>string</DisplayStyle> <BackgroundColor>string</BackgroundColor> <FontColor>string</FontColor> <FontFamily>string</FontFamily> <FontSize>string</FontSize> <LogoUrl>string</LogoUrl> <PageTitle>string</PageTitle> <SecurityLogo>string</SecurityLogo> <SubmitButtonText>string</SubmitButtonText> <CancelButtonText>string</CancelButtonText> <Keypad>string</Keypad> <DefaultSwipe>string</DefaultSwipe> <CardHolderName>string</CardHolderName> <OperatorID>string</OperatorID> <ButtonBackgroundColor>string</ButtonBackgroundColor> <ButtonTextColor>string</ButtonTextColor> <JCB>string</JCB> <Diners>string</Diners> <CUP>string</CUP> <CardEntryMethod>string</CardEntryMethod> <SubmitButtonDefaultImageUrl>string</SubmitButtonDefaultImageUrl> <SubmitButtonHoverImageUrl>string</SubmitButtonHoverImageUrl> <CancelButtonDefaultImageUrl>string</CancelButtonDefaultImageUrl> <CancelButtonHoverImageUrl>string</CancelButtonHoverImageUrl> <PageTimeoutDuration>string</PageTimeoutDuration> <CancelButton>string</CancelButton> <ForceManualTablet>string</ForceManualTablet> <LaneID>string</LaneID> <TokenType>string</TokenType> </request> </InitializeCardInfo> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <InitializeCardInfoResponse xmlns="http://www.mercurypay.com/"> <InitializeCardInfoResult> <ResponseCode>int</ResponseCode> <CardID>string</CardID> <Message>string</Message> </InitializeCardInfoResult> </InitializeCardInfoResponse> </soap12:Body> </soap12:Envelope>