Page MenuHomeDatingVIP

processor.rebill-retry-plans
Updated 1,594 Days AgoPublic

processor.rebill-retry-plans

Description

Retrieve all rebill retry plan names (dictionary).
No params required

Return
NameTypeDescription
resultarrayResult array with data
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'	=> 'processor.rebill-retry-plans',
);

$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 should be:

array (size=1)
  'result' => 
    array (size=8)
      'code' => int 700
      'status' => string 'Action completed succesfully' (length=28)
      'command' => string 'processor.rebill-retry-plans' (length=18)
      'result' => [
                    1 => 'Default NB Plan',
                    2 => 'Default DO Plan',
                    4 => 'Default RG Plan',
                    5 => 'Default 3 Month Decline Plan',
                    7 => 'Default PO DD Plan',
                    8 => 'Default Decline Plan',
                    9 => 'NSF PREPAID',
                    10 => 'Default Sofort Payon Plan',
                    11 => 'Default Ios Rebill Plan',
                ],
        
      'request' => 
        array (size=4)
          'cmd' => string 'processor.rebill-retry-plans' (length=18)
          'token' => string 'some-token' (length=26)
          'pass' => string 'some-pass' (length=32)
      'ts' => int 1429561629
      'origin_ip' => string '93.87.220.184' (length=13)
      'errors' => null
Last Author
aplawecki
Last Edited
Dec 13 2019, 06:13

Event Timeline

aplawecki changed the title from processor.rebill.retry.plans to processor.rebill-retry-plans.Dec 13 2019, 06:11
aplawecki edited the content of this document. (Show Details)
aplawecki edited the content of this document. (Show Details)
aplawecki created this object.