Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@

# Operating system files
.DS_Store
/lib
/*.cache
/testslog
10 changes: 6 additions & 4 deletions RecurringBilling/get-list-of-subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getListOfSubscriptions()
$sorting->setOrderDescending(false);

$paging = new AnetAPI\PagingType();
$paging->setLimit("1000");
$paging->setLimit("10");
$paging->setOffset("1");

$request = new AnetAPI\ARBGetSubscriptionListRequest();
Expand All @@ -39,10 +39,12 @@ function getListOfSubscriptions()

if (($response != null) && ($response->getMessages()->getResultCode() == "Ok")) {
echo "SUCCESS: Subscription Details:" . "\n";
foreach ($response->getSubscriptionDetails() as $subscriptionDetails) {
echo "Subscription ID: " . $subscriptionDetails->getId() . "\n";
}
echo "Total Number In Results:" . $response->getTotalNumInResultSet() . "\n";
if ($response->getTotalNumInResultSet() > 0) {
foreach ($response->getSubscriptionDetails() as $subscriptionDetails) {
echo "Subscription ID: " . $subscriptionDetails->getId() . "\n";
}
}
} else {
echo "ERROR : Invalid response\n";
$errorMessages = $response->getMessages()->getMessage();
Expand Down
2 changes: 1 addition & 1 deletion SampleCodeList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GetTransactionList,0,1
CreateAnApplePayTransaction,0,0
CreateAnAcceptTransaction,0,0
CreateAnAndroidPayTransaction,0,0
decryptVisaSrcData,0,1
decryptVisaSrcData,0,0
createVisaSrcTransaction,0,0
CaptureFundsAuthorizedThroughAnotherChannel,1,1
AuthorizeCreditCard,1,1
Expand Down