Cash Deposit

Cash Deposit / Cage Deposit allows to process deposits at the cage inside of a physical casino.

When the merchant operator enters a username or eMail address into the cage page on Payment Service Admin (PS Admin), a specific API call is sent to the merchant to retrieve user details. This call has to be implemented by the merchant.

The customer has to be of legal age and must be in good standing. Users that are not eligible are to be flagged accordingly, or not to be returned at all. Identity has to be verified at the cage.

When the payment is initiated, a callback is sent to the merchant listener to approve or deny the payment.

The following method IDs are covered in this section:

IDNameCredit/Debit State
177CashDepositDepositedByUser (525)

Flow overview

The following flow is used:

521

Sequence overview

651

Redirect Integration

Not applicable.

Backend2BackendIntegration

Before the payment is progressed, the cage page inside of PS Admin sends a request to the merchant listener to lookup the details of the customer (player).

The merchant should return in the response the following details for the customer:
minLimit, maxLimit and limitCurrency, also email, FirstName, Lastname and date of birth, and identification Number (SSN (full or partial (masked), only for display).

Multiple currencies are supported. Data is not stored, only displayed.

If user cannot be found, an error message is shown.

Example getNewManualPaymentDetailsRequest:

<getNewManualPaymentDetailsRequest>
       <merchantID>Merchant</merchantID>
       <paymentMethodID>177</paymentMethodID>
       <userID>SomeUserID</userID>
       <username>SomeUserName</username>
       <email>[email protected]</email>
       <languageCode>EN</languageCode>
</getNewManualPaymentDetailsRequest>

The request will include either the userID or the userName or the eMail address field.

Example getNewManualPaymentDetailsResponse:

<getNewManualPaymentDetailsResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<result>
		<userID xmlns="http://www.cqrpayments.com/PaymentProcessing">455020</userID>
		<merchantTransactionID xmlns="http://www.cqrpayments.com/PaymentProcessing">278282</merchantTransactionID>
		<userDetails xmlns="http://www.cqrpayments.com/PaymentProcessing">
			<username>test</username>
			<firstname>Test</firstname>
			<lastname>Test</lastname>
			<currencyCode>USD</currencyCode>
			<languageCode>en</languageCode>
			<email>[email protected]</email>
			<address>
				<street>111 Test Drive</street>
				<houseName/>
				<houseNumber/>
				<houseNumberExtension/>
				<postalCode>11111</postalCode>
				<city>Test</city>
				<state>PA</state>
				<countryCode2>US</countryCode2>
				<telephoneNumber>111-111-1111</telephoneNumber>
			</address>
			<identificationNumber/>
		</userDetails>
		<paymentDetails xmlns="http://www.cqrpayments.com/PaymentProcessing">
			<detail xsi:type="keyDecimalValuePair">
				<key>MinLimit</key>
				<value>0</value>
			</detail>
			<detail xsi:type="keyDecimalValuePair">
				<key>MaxLimit</key>
				<value>1000</value>
			</detail>
			<detail xsi:type="keyStringValuePair">
				<key>LimitCurrency</key>
				<value>USD</value>
			</detail>
		</paymentDetails>
	</result>
	<status>
		<code xmlns="http://www.cqrpayments.com/PaymentProcessing">0</code>
		<description xmlns="http://www.cqrpayments.com/PaymentProcessing">Success</description>
		<details xmlns="http://www.cqrpayments.com/PaymentProcessing"/>
	</status>
</getNewManualPaymentDetailsResponse>

According to the returned response message, the following information will be displayed to the cage clerk in the PS Admin.

Response Messages:

responseStatus.CodeMeaningDisplay message
0User Found / Eligible
2User Not FoundThe message passed in description will be used for display.

XSD

Please see below for the XSD. All the basic types are included in the main XSD, see here.

<s:element name="getNewManualPaymentDetailsRequest">
	<s:complexType>
		<s:sequence>
			<s:element minOccurs="1" maxOccurs="1" name="merchantID" type="stringID" />
			<s:element minOccurs="1" maxOccurs="1" name="paymentMethodID" type="positiveInt"/>
			<s:element minOccurs="0" maxOccurs="1" name="userID" type="username" nillable="true"/>
			<s:element minOccurs="0" maxOccurs="1" name="username" type="username" nillable="true"/>
			<s:element minOccurs="0" maxOccurs="1" name="email" type="emailAddress" nillable="true"/>
			<s:element minOccurs="0" maxOccurs="1" name="languageCode" type="twoLetterCode" nillable="true"/>
		</s:sequence>
	</s:complexType>
</s:element>

<s:element name="getNewManualPaymentDetailsResponse">
	<s:complexType>
		<s:sequence>
			<s:element minOccurs="0" maxOccurs="1" name="result" type="getNewManualPaymentDetailsResult"/>
			<s:element minOccurs="1" maxOccurs="1" name="status" type="responseStatus"/>
			<s:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##any" />
		</s:sequence>
	</s:complexType>
</s:element>

<s:complexType name="getNewManualPaymentDetailsResult">
	<s:sequence>
		<s:element minOccurs="0" maxOccurs="1" name="userID" type="stringID"/>
		<s:element minOccurs="0" maxOccurs="1" name="merchantTransactionID" type="merchantTransactionID" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="userDetails" type="userDetails" nillable="true"/>
		<s:element minOccurs="1" maxOccurs="1" name="paymentDetails">
			<s:complexType>
				<s:sequence>
					<s:element minOccurs="0" maxOccurs="unbounded" name="detail" type="keyValueBasePair"/>
				</s:sequence>
			</s:complexType>
		</s:element>
		<s:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##any"/>
	</s:sequence>
</s:complexType>

<s:complexType name="responseStatus">
	<s:sequence>
		<s:element minOccurs="1" maxOccurs="1" name="code" type="s:int"/>
		<s:element minOccurs="1" maxOccurs="1" name="description" type="s:string"/>
		<s:element minOccurs="1" maxOccurs="1" name="details">
			<s:complexType>
				<s:sequence>
					<s:element minOccurs="0" maxOccurs="1000" name="detail" type="keyValueBasePair"/>
				</s:sequence>
			</s:complexType>
		</s:element>
		<s:any minOccurs="0" maxOccurs="unbounded" processContents="lax" namespace="##any" />
	</s:sequence>
</s:complexType>

<s:complexType name="userDetails">
	<s:sequence>
		<s:element minOccurs="0" maxOccurs="1" name="username" type="username" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="firstname" type="personName" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="lastname" type="personName" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="currencyCode" type="threeLetterCode" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="languageCode" type="twoLetterCode" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="email" type="emailAddress" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="address" type="address" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="dateOfBirth" type="dateOfBirth" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="gender" type="gender" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="identificationNumber" type="secureString" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="identificationNumberType" type="secureString" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="drivingLicenseNumber" type="secureString" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="drivingLicenseIssuingState" type="secureString" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="isVIPUser" type="s:boolean" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="registrationDateAtMerchant" type="s:date" nillable="true"/>
		<s:element minOccurs="0" maxOccurs="1" name="lastActivityDateAtMerchant" type="s:date" nillable="true"/>
	</s:sequence>
</s:complexType>

Currency Handling

This section describes the options available for the merchant in order to manage currencies on the Cash Deposit page.

There are two options: single currency and multiple currencies.

When using multiple currencies a selection dropdown will be displayed to the operator to allow for the selection of the desired currency. With multiple currencies it is also possible to identify a preferred currency, which will be pre-selected in the dropdown if provided.

Option 1: Single currency

In order to display a single currency the merchant must provide the currency code along with a minimum and maximum limit.

Sample getNewManualPaymentDetailsResponse:

<paymentDetails xmlns="http://www.cqrpayments.com/PaymentProcessing">
	<detail xsi:type="keyDecimalValuePair">
		<key>minLimit</key>
		<value>10</value>
	</detail>
	<detail xsi:type="keyDecimalValuePair">
		<key>maxLimit</key>
		<value>100</value>
	</detail>
	<detail xsi:type="keyStringValuePair">
		<key>limitCurrency</key>
		<value>USD</value>
	</detail>
</paymentDetails>

Things to consider:

  1. The “limitCurrency” detail is optional in a single currency response
  2. If the limit currency is not provided, the currency code will be taken from the user details

Option 2: Multiple currencies

In order to display multiple currencies the merchant must provide each currency code with the appropriate minimum and maximum limit for that currency.

Sample getNewManualPaymentDetailsResponse:

<paymentDetails xmlns="http://www.cqrpayments.com/PaymentProcessing">
	<detail xsi:type="keyDecimalValuePair">
		<key>minLimitUSD</key>
		<value>10</value>
	</detail>
	<detail xsi:type="keyDecimalValuePair">
		<key>maxLimitUSD</key>
		<value>100</value>
	</detail>
	<detail xsi:type="keyDecimalValuePair">
		<key>minLimitCAD</key>
		<value>15</value>
	</detail>
	<detail xsi:type="keyDecimalValuePair">
		<key>maxLimitCAD</key>
		<value>150</value>
	</detail>
	<detail xsi:type="keyStringValuePair">
		<key>limitCurrency</key>
		<value>USD,CAD</value>
	</detail>
</paymentDetails>

Things to consider:

  1. The “limitCurrency” detail is mandatory in a multiple currency response
  2. The “limitCurrency” detail must contain a comma-separated list of all desired currencies
  3. The “minLimit” and “maxLimit” details must be present for each of the desired currencies
  4. The “minLimit” and “maxLimit” details must have a suffix with the appropriate currency code

Additionally, the merchant may include a preferred currency which will be preselected on the Cash Deposit page. This additional detail would be included as part of the multiple currency response as follows:

… 
<detail xsi:type="keyStringValuePair">
<key>preferredCurrency</key>
<value>USD</value>
</detail>
…

Payment flow

When the cage clerk creates a payment, a request is sent to the merchant backend. The merchant has the chance to accept or decline this payment.

Example handlePaymentStateChangedNotificationRequest:

<?xml version="1.0" encoding="utf-8"?>
<handlePaymentStateChangedNotificationRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.cqrpayments.com/PaymentProcessing">
    <payment xsi:type="paymentWithPaymentAccount">
        <merchantID>MerchantID</merchantID>
        <shopID>ShopID</shopID>
        <paymentMethod>
            <key>177</key>
            <value>Cash Deposit</value>
        </paymentMethod>
        <merchantTransactionID>06129a57-d536-4bef-b9dc-f84efc893583</merchantTransactionID>
        <paymentID>072d3d6e-883f-49f1-bc27-80d1c1be9da0</paymentID>
        <userID>testuser</userID>
        <paymentProvider>
            <key>123</key>
            <value>Kalixa</value>
        </paymentProvider>
        <amount currencyCode="USD">21.0000</amount>
        <creationType>
            <key>1</key>
            <value>User</value>
        </creationType>
        <userIP>127.0.0.1</userIP>
        <state>
            <id>f31cab99-ffa1-4296-a363-a38703f94171</id>
            <definition>
                <key>370</key>
                <value>DuplicatePaymentValidationPassed</value>
            </definition>
            <createdOn>2019-12-30T10:02:16.933</createdOn>
            <paymentStateDetails xsi:nil="true" />
        </state>
        <isExecuted>true</isExecuted>
        <baseAmount currencyCode="EUR">20.0000</baseAmount>
        <paymentDetails>
            <detail xsi:type="keyStringValuePair">
                <key>ProviderExternalID</key>
                <value>753876099</value>
            </detail>
            <detail xsi:type="keyStringValuePair">
                <key>CustomerID</key>
                <value>44002388</value>
            </detail>
                    </paymentDetails>
        <paymentAccount>
            <paymentAccountID>0</paymentAccountID>
        </paymentAccount>
    </payment>
</handlePaymentStateChangedNotificationRequest>

Example handlePaymentStateChangedNotificationResponse (successful case):

<?xml version="1.0" encoding="utf-8"?>
<handlePaymentStateChangedNotificationResponse 
    xmlns="http://www.cqrpayments.com/PaymentProcessing" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <resultCode>
    <key>0</key>
    <value>ProcessedSuccessfully</value>
  </resultCode>
  <resultMessage>Approved payment</resultMessage>
</handlePaymentStateChangedNotificationResponse>

Example handlePaymentStateChangedNotificationResponse (rejected case):

<?xml version="1.0" encoding="utf-8"?>
<handlePaymentStateChangedNotificationResponse 
    xmlns="http://www.cqrpayments.com/PaymentProcessing"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <resultCode>
        <key>15</key>
        <value>BlockedByMerchant</value>
    </resultCode>
    <resultMessage>Rejected payment</resultMessage>
</handlePaymentStateChangedNotificationResponse>

*Example handlePaymentStateChangedNotificationResponse (error case)**:

<?xml version="1.0" encoding="utf-8"?>
<handlePaymentStateChangedNotificationResponse 
    xmlns="http://www.cqrpayments.com/PaymentProcessing"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <resultCode>
        <key>2</key>
        <value>UnknownState</value>
    </resultCode>
    <resultMessage>Rejected payment</resultMessage>
</handlePaymentStateChangedNotificationResponse>

Notifications

The standard notification mechanism is used for notifying the merchant in the background (asynchronously) about payment state changes. For more information see PaymentStateChangedNotification.

Example handlePaymentStateChangedNotificationRequest:

<?xml version="1.0" encoding="utf-8"?>
<handlePaymentStateChangedNotificationRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.cqrpayments.com/PaymentProcessing">
    <payment xsi:type="paymentWithPaymentAccount">
        <merchantID>MerchantID</merchantID>
        <shopID>ShopID</shopID>
        <paymentMethod>
            <key>177</key>
            <value>Cash Deposit</value>
        </paymentMethod>
        <merchantTransactionID>06129a57-d536-4bef-b9dc-f84efc893583</merchantTransactionID>
        <paymentID>072d3d6e-883f-49f1-bc27-80d1c1be9da0</paymentID>
        <userID>testuser</userID>
        <paymentProvider>
            <key>123</key>
            <value>Kalixa</value>
        </paymentProvider>
        <amount currencyCode="USD">21.0000</amount>
        <creationType>
            <key>1</key>
            <value>User</value>
        </creationType>
        <userIP>127.0.0.1</userIP>
        <state>
            <id>f31cab99-ffa1-4296-a363-a38703f94171</id>
            <definition>
                <key>525</key>
                <value>DepositedByUser</value>
            </definition>
            <createdOn>2019-12-30T10:02:16.933</createdOn>
            <paymentStateDetails xsi:nil="true" />
        </state>
        <isExecuted>true</isExecuted>
        <baseAmount currencyCode="EUR">20.0000</baseAmount>
        <paymentDetails>
            <detail xsi:type="keyStringValuePair">
                <key>ProviderExternalID</key>
                <value>753876099</value>
            </detail>
            <detail xsi:type="keyStringValuePair">
                <key>CustomerID</key>
                <value>44002388</value>
            </detail>
                    </paymentDetails>
        <paymentAccount>
            <paymentAccountID>0</paymentAccountID>
        </paymentAccount>
    </payment>
</handlePaymentStateChangedNotificationRequest>