Skip to content

Commit

Permalink
Merge pull request #4 from VenomServices/patch-2
Browse files Browse the repository at this point in the history
Changed API action for getting latest donations.
  • Loading branch information
samerton committed Sep 10, 2015
2 parents 3a59c31 + 606f9c1 commit cb93314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/Donate/integration/mcstock.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$API = $queries->getWhere('donation_settings', array("name", "=", "api_key"));
$API = $API[0]->value;

$mcs_payments = file_get_contents('https://mcstock.net/api/v1/?key_type=server&key=' . $API . '&action=get_sales');
$mcs_payments = file_get_contents('https://mcstock.net/api/v1/?key_type=server&key=' . $API . '&action=get_orders');
$mcs_payments = json_decode($mcs_payments, true);

if(isset($mcs_payments['result']) && $mcs_payments['result'] == 'success'){
Expand Down Expand Up @@ -44,4 +44,4 @@
}

//echo '<pre>', print_r($mcs_packages), '</pre>';
//echo '<pre>', print_r($mcs_categories), '</pre>';
//echo '<pre>', print_r($mcs_categories), '</pre>';

0 comments on commit cb93314

Please sign in to comment.