Page MenuHomeDatingVIP

Chargebacks
Updated 3,505 Days AgoPublic

To get charge back data use transaction.list as described in Api documentation with two additional parameters: type=chargeback and no_partner_check=true.

Usage Example
<?php
$curl = new \Dinke\CurlHttpClient;

//setup payment url and timeout
$payment_url = 'https://dev-payment.datingvip.com/api.json';
$timeout 	= 30;

$curl->setCredentials('some-token', 'some-pass');

$post_data = array(
	'cmd'	=> 'transaction.list',
	'data'	        => array('type' => 'chargeback', 'no_partner_check' => true),
);

$response = $curl->sendPostData($payment_url, $post_data, null, $timeout);
if($response === false)
{
	//handle errors
}

//decode json to get array
$response = json_decode($response, true);
var_dump($response);

Excepted output after running this script(with addition of limit=1 for the sake of clarity) should be:

array (size=1)
  'result' => 
    array (size=8)
      'code' => int 700
      'status' => string 'Action completed succesfully' (length=28)
      'command' => string 'transaction.list' (length=16)
      'result' => 
        array (size=2)
          0 => 
            array (size=61)
              'tran_id' => string '72' (length=2)
              'ptnr_id' => string '1' (length=1)
              'ppac_id' => string '74' (length=2)
              'order_id' => string '59' (length=2)
              'ccdt_id' => string '37' (length=2)
              'transaction_type' => string 'c' (length=1)
              'amount' => string '39.99' (length=5)
              'currency' => string 'USD' (length=3)
              'description' => string '[CB] order #59 - uid #41 - $39.99 billed every 3 months (90 days)' (length=65)
              'status' => string 'successful' (length=10)
              'refunded_tran_id' => string '71' (length=2)
              'origin' => string 'system' (length=6)
              'ts' => string '1413825539' (length=10)
              'original_ts' => string '0' (length=1)
              'status_code' => string '1' (length=1)
              'payment_code' => string '700' (length=3)
              'pp_id' => string '6' (length=1)
              'tracking_tag' => string '14' (length=2)
              'hash' => string '141382544156452e365dc1621eb9e9f5' (length=32)
              'user_id' => string '41' (length=2)
              'order_type' => string 'basic' (length=5)
              'first_name' => string 'sdagasdg' (length=8)
              'last_name' => string 'gdsagsdagsda' (length=12)
              'street' => string '' (length=0)
              'city' => string '' (length=0)
              'state' => string '' (length=0)
              'zipcode' => string '0000' (length=4)
              'country' => string 'RS' (length=2)
              'site_id' => string '14' (length=2)
              'refunded' => int 0
              'refunded_amount' => int 0
              'type' => string 'chargeback' (length=10)
              'name' => string 'Rocket Gate - Online Connections' (length=32)
              'is_active' => string '1' (length=1)
              'ccnum' => string '412800xxxxxx7113' (length=16)
              'ccname' => string 'sdagasdg gdsagsdagsda' (length=21)
              'ccxpdate' => string '2016-01-01' (length=10)
              'cctype' => string 'visa' (length=4)
              'ccaddress' => string '' (length=0)
              'cczip' => string '0000' (length=4)
              'ccstatus' => string 'inactive' (length=8)
              'cccountry' => string 'RS' (length=2)
              'processor' => string 'RG' (length=2)
              'processor_name' => string 'RocketGate' (length=10)
              'date' => string '1413825539' (length=10)
              'details' => 
                array (size=38)
                  'tdrg_id' => string '52' (length=2)
                  'guidNo' => string '10001492E906785' (length=15)
                  'authNo' => string '486947' (length=6)
                  'merchantInvoiceID' => string '' (length=0)
                  'merchantAccount' => string '3' (length=1)
                  'approvedAmount' => string '39.99' (length=5)
                  'approvedCurrency' => string 'USD' (length=3)
                  'scrubResults' => string '' (length=0)
                  'merchantCustomerID' => string '' (length=0)
                  'avsResponse' => string '' (length=0)
                  'cvv2Code' => string '' (length=0)
                  'reasonCode' => string '0075' (length=4)
                  'responseCode' => string '' (length=0)
                  'cardCountry' => string 'US' (length=2)
                  'cardHash' => string '8DoHBzr/OzoLDD3ZjNcJpAYKkhX5E240yaPc7l2d2/Y=' (length=44)
                  'merchantID' => string '1358984622' (length=10)
                  'bankResponseCode' => string '' (length=0)
                  'ptnr_id' => string '1' (length=1)
                  'ppac_id' => string '74' (length=2)
                  'order_id' => string '59' (length=2)
                  'ccdt_id' => string '37' (length=2)
                  'transaction_type' => string 'c' (length=1)
                  'amount' => string '39.99' (length=5)
                  'currency' => string 'USD' (length=3)
                  'description' => string '' (length=0)
                  'status' => string 'successful' (length=10)
                  'refunded_tran_id' => string '71' (length=2)
                  'origin' => string 'system' (length=6)
                  'ts' => string '1413825539' (length=10)
                  'original_ts' => string '0' (length=1)
                  'status_code' => string '1' (length=1)
                  'payment_code' => string '700' (length=3)
                  'transactionID' => string '10001492E906785' (length=15)
                  'invoiceID' => string '' (length=0)
                  'membershipID' => string '' (length=0)
                  'avsCode' => string '' (length=0)
                  'uniqueAccountId' => string '1358984622-3' (length=12)
                  'is_retrieval' => string '0' (length=1)
              'status_message' => string 'Action completed succesfully' (length=28)
              'pay_status' => string 'APPROVED' (length=8)
              'status_severity' => int 2
              'items' => 
                array (size=1)
                  0 => string '20058' (length=5)
              'item_id' => string '20058' (length=5)
              'sub_id' => string '42' (length=2)
              'tracking_user' => string '4151730' (length=7)
              'email' => string 'gweagwaegwe@ewgwegweg.gwe' (length=25)
              'card_brand' => string 'VISA' (length=4)
              'card_type' => string 'CREDIT' (length=6)
              'card_category' => string 'CLASSIC' (length=7)
              'bank_name' => string 'CITIBANK, N.A.' (length=14)
              'bank_country_code' => string 'US' (length=2)
              'bank_site' => string 'HTTPS://ONLINE.CITIBANK.COM/US/WELCOME.C' (length=40)
              'bank_phone' => string '1-800-374-9700' (length=14)
          1 => 
            array (size=61)
              'tran_id' => string '69' (length=2)
              'ptnr_id' => string '1' (length=1)
              'ppac_id' => string '74' (length=2)
              'order_id' => string '58' (length=2)
              'ccdt_id' => string '36' (length=2)
              'transaction_type' => string 'c' (length=1)
              'amount' => string '1.00' (length=4)
              'currency' => string 'USD' (length=3)
              'description' => string '[CB] order #58 - uid #40 - $39.99 billed every 3 months (90 days)' (length=65)
              'status' => string 'successful' (length=10)
              'refunded_tran_id' => string '68' (length=2)
              'origin' => string 'system' (length=6)
              'ts' => string '1413820738' (length=10)
              'original_ts' => string '0' (length=1)
              'status_code' => string '1' (length=1)
              'payment_code' => string '700' (length=3)
              'pp_id' => string '6' (length=1)
              'tracking_tag' => string '14' (length=2)
              'hash' => string '14138206528475988701c0c874cda5e6' (length=32)
              'user_id' => string '40' (length=2)
              'order_type' => string 'basic' (length=5)
              'first_name' => string 'sdagsadgsadg' (length=12)
              'last_name' => string 'sdgsdagsda' (length=10)
              'street' => string '' (length=0)
              'city' => string '' (length=0)
              'state' => string '' (length=0)
              'zipcode' => string '0000' (length=4)
              'country' => string 'RS' (length=2)
              'site_id' => string '14' (length=2)
              'refunded' => int 0
              'refunded_amount' => int 0
              'type' => string 'chargeback' (length=10)
              'name' => string 'Rocket Gate - Online Connections' (length=32)
              'is_active' => string '1' (length=1)
              'ccnum' => string '412800xxxxxx7113' (length=16)
              'ccname' => string 'sdagsadgsadg sdgsdagsda' (length=23)
              'ccxpdate' => string '2016-01-01' (length=10)
              'cctype' => string 'visa' (length=4)
              'ccaddress' => string '' (length=0)
              'cczip' => string '0000' (length=4)
              'ccstatus' => string 'inactive' (length=8)
              'cccountry' => string 'RS' (length=2)
              'processor' => string 'RG' (length=2)
              'processor_name' => string 'RocketGate' (length=10)
              'date' => string '1413820738' (length=10)
              'details' => 
                array (size=38)
                  'tdrg_id' => string '49' (length=2)
                  'guidNo' => string '10001492E473E17' (length=15)
                  'authNo' => string '429010' (length=6)
                  'merchantInvoiceID' => string '' (length=0)
                  'merchantAccount' => string '3' (length=1)
                  'approvedAmount' => string '39.99' (length=5)
                  'approvedCurrency' => string 'USD' (length=3)
                  'scrubResults' => string '' (length=0)
                  'merchantCustomerID' => string '' (length=0)
                  'avsResponse' => string '' (length=0)
                  'cvv2Code' => string '' (length=0)
                  'reasonCode' => string '0075' (length=4)
                  'responseCode' => string '' (length=0)
                  'cardCountry' => string 'US' (length=2)
                  'cardHash' => string '8DoHBzr/OzoLDD3ZjNcJpAYKkhX5E240yaPc7l2d2/Y=' (length=44)
                  'merchantID' => string '1358984622' (length=10)
                  'bankResponseCode' => string '' (length=0)
                  'ptnr_id' => string '1' (length=1)
                  'ppac_id' => string '74' (length=2)
                  'order_id' => string '58' (length=2)
                  'ccdt_id' => string '36' (length=2)
                  'transaction_type' => string 'c' (length=1)
                  'amount' => string '39.99' (length=5)
                  'currency' => string 'USD' (length=3)
                  'description' => string '' (length=0)
                  'status' => string 'successful' (length=10)
                  'refunded_tran_id' => string '68' (length=2)
                  'origin' => string 'system' (length=6)
                  'ts' => string '1413820738' (length=10)
                  'original_ts' => string '0' (length=1)
                  'status_code' => string '1' (length=1)
                  'payment_code' => string '700' (length=3)
                  'transactionID' => string '10001492E473E17' (length=15)
                  'invoiceID' => string '' (length=0)
                  'membershipID' => string '' (length=0)
                  'avsCode' => string '' (length=0)
                  'uniqueAccountId' => string '1358984622-3' (length=12)
                  'is_retrieval' => string '0' (length=1)
              'status_message' => string 'Action completed succesfully' (length=28)
              'pay_status' => string 'APPROVED' (length=8)
              'status_severity' => int 2
              'items' => 
                array (size=1)
                  0 => string '20057' (length=5)
              'item_id' => string '20057' (length=5)
              'sub_id' => string '41' (length=2)
              'tracking_user' => string '4151729' (length=7)
              'email' => string 'wegwegwegwe@gewgweg.gew' (length=23)
              'card_brand' => string 'VISA' (length=4)
              'card_type' => string 'CREDIT' (length=6)
              'card_category' => string 'CLASSIC' (length=7)
              'bank_name' => string 'CITIBANK, N.A.' (length=14)
              'bank_country_code' => string 'US' (length=2)
              'bank_site' => string 'HTTPS://ONLINE.CITIBANK.COM/US/WELCOME.C' (length=40)
              'bank_phone' => string '1-800-374-9700' (length=14)
      'request' => 
        array (size=4)
          'cmd' => string 'transaction.list' (length=16)
          'data' => 
            array (size=2)
              'type' => string 'chargeback' (length=10)
              'no_partner_check' => string '1' (length=1)
          'token' => string 'some-token' (length=26)
          'pass' => string 'some-pass' (length=32)
      'ts' => int 1429564285
      'origin_ip' => string '93.87.220.184' (length=13)
      'errors' => null

which is the same format as any other transaction.list call. All other input options, described in Api documentation, apply as well.
Omitting no_partner_check option, or passing it with value false, would return only charge back data for current partner.

Last Author
dinke
Last Edited
Apr 20 2015, 17:12

Event Timeline

asimic edited the content of this document. (Show Details)
boris shifted this object from the Restricted Space space to the S6 Everyone space.Aug 8 2018, 08:08