ProFee withdraw

Withdraws in ProFee are available only to those users who are already registered in the system.
Therefore, no withdraw is possible without prior registration and payment.

The following method IDs are covered in this section:

IDNameCredit/Debit StateReversal State
309ProFeeWithdrawalWithdrawnByProvider (20)

Payment method interaction type: Sychronous execution (see Interaction Types).

Redirect Integration

Currently not supported.

Sequence diagram

Following diagram describes ProFeeWithdrawal flow

751

State diagram

Diagram below follows transaction states of ProFeeWithdrawal

649

Backend2BackendIntegration

The following table contains the fields to be sent in initiatePaymentRequest

key (value type, account type, required)value
amount (long integer, required)Amount must be numeric in following format:
1000.00

The following table contains the fields to be sent in initiatePaymentRequest.paymentAccount

key (value type, account type, required)value
AccountNumber (string, required)User’s phone number. The key parameter of a ProFee user account, there can be only one wallet per number. Phone number should be passed without the + sign!

The following table contains the fields to be sent in initiatePaymentRequest.specificPaymentData

key (value type, account type, required)value
BrowserHeaderUserAgent (string, required)User's browser

Example initiatePaymentRequest:

<?xml version="1.0" encoding="utf-8"?>
<initiatePaymentRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.cqrpayments.com/PaymentProcessing">
	<merchantID>KalixaAcceptDEMO</merchantID>
	<shopID>KalixaAcceptDEMO</shopID>
	<merchantTransactionID>512-1gw55-g5552-hhghh17</merchantTransactionID>
	<paymentMethodID>309</paymentMethodID>
	<amount currencyCode="RUB">11112</amount>
	<userID>c3ba0665-68ef-4daf-a3e6-8e70a1</userID>
	<userIP>127.0.0.1</userIP>
	<userSessionID>8da7fe3c-da36-45c0-b107-ff9f91d71db6</userSessionID>
	<creationTypeID>1</creationTypeID>
	<specificPaymentData>
		<data xsi:type="keyStringValuePair">
			<key>BrowserHeaderUserAgent</key>
			<value>Mozilla/5.0</value>
		</data>
	</specificPaymentData>
	<paymentAccount>
		<specificPaymentAccountData>
			<data xsi:type="keyStringValuePair">
				<key>AccountNumber</key>
				<value>359886585007</value>
			</data>
		</specificPaymentAccountData>
	</paymentAccount>
</initiatePaymentRequest>

Example initiatePaymentResponse:

<initiatePaymentResponse xmlns="http://www.cqrpayments.com/PaymentProcessing" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <payment xsi:type="paymentWithPaymentAccount">
        <merchantID>KalixaAcceptDEMO</merchantID>
        <shopID>KalixaAcceptDEMO</shopID>
        <paymentMethod>
            <key>309</key>
            <value>ProFeeWithdrawal</value>
        </paymentMethod>
        <merchantTransactionID>512-1gw55-g5552-hhghh17</merchantTransactionID>
        <paymentID>7e53e2cb-6cc3-48ae-a6d3-b85ed0296c24</paymentID>
        <userID>c3ba0665-68ef-4daf-a3e6-8e70a1</userID>
        <paymentProvider>
            <key>167</key>
            <value>ProFee</value>
        </paymentProvider>
        <amount currencyCode="RUB">11112</amount>
        <creationType>
            <key>1</key>
            <value>User</value>
        </creationType>
        <userIP>127.0.0.1</userIP>
        <state>
            <id>f50a0bf2-56ad-4737-87c0-4e3e63b907ef</id>
            <definition>
                <key>120</key>
                <value>PendingOnProvider</value>
            </definition>
            <createdOn>2018-04-20T09:51:46.5394383Z</createdOn>
            <paymentStateDetails>
                <detail xsi:type="keyStringValuePair">
                    <key>PaymentStateReasonID</key>
                    <value>1</value>
                </detail>
            </paymentStateDetails>
        </state>
        <isExecuted>false</isExecuted>
        <baseAmount currencyCode="EUR">274.03</baseAmount>
        <paymentDetails>
            <detail xsi:type="keyStringValuePair">
                <key>ProviderTransactionID</key>
                <value>999</value>
            </detail>
            <detail xsi:type="keyStringValuePair">
                <key>ProviderExternalID</key>
                <value>1617202</value>
            </detail>
        </paymentDetails>
        <paymentAccount>
            <paymentAccountID>135e618f-f2d0-4e1b-a85a-4bf92f18819a</paymentAccountID>
        </paymentAccount>
    </payment>
</initiatePaymentResponse>

Example Notification:

<?xml version="1.0" encoding="utf-16"?>
<handlePaymentStateChangedNotificationRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <payment xmlns:q1="http://www.cqrpayments.com/PaymentProcessing" xsi:type="paymentWithPaymentAccount">
        <merchantID>KalixaAcceptDEMO</merchantID>
        <shopID>KalixaAcceptDEMO</shopID>
        <paymentMethod>
            <key>309</key>
            <value>ProFeeWithdrawal</value>
        </paymentMethod>
        <merchantTransactionID>512-1gw55-g5552-hhghh17</merchantTransactionID>
        <paymentID>7e53e2cb-6cc3-48ae-a6d3-b85ed0296c24</paymentID>
        <userID>c3ba0665-68ef-4daf-a3e6-8e70a1</userID>
        <paymentProvider>
            <key>167</key>
            <value>ProFee</value>
        </paymentProvider>
        <amount currencyCode="RUB">11112.0000</amount>
        <creationType>
            <key>1</key>
            <value>User</value>
        </creationType>
        <userIP>127.0.0.1</userIP>
        <state>
            <id>aa34ab76-0c8b-49b3-9f4d-16f6aaea06ee</id>
            <definition>
                <key>20</key>
                <value>WithdrawnByProvider</value>
            </definition>
            <createdOn>2018-04-20T11:13:40.637</createdOn>
            <description />
            <paymentStateDetails xsi:nil="true" />
        </state>
        <isExecuted>true</isExecuted>
        <baseAmount currencyCode="EUR">274.0300</baseAmount>
        <paymentDetails>
            <detail xsi:type="keyStringValuePair">
                <key>ProviderExternalID</key>
                <value>1617202</value>
            </detail>
            <detail xsi:type="keyStringValuePair">
                <key>ProviderTransactionID</key>
                <value>999</value>
            </detail>
        </paymentDetails>
        <paymentAccount>
            <paymentAccountID>135e618f-f2d0-4e1b-a85a-4bf92f18819a</paymentAccountID>
        </paymentAccount>
    </payment>
</handlePaymentStateChangedNotificationRequest>