ticketevolution/ticketevolution-php — Issue #26: createClientCreditCard -- sandbox.  also listorder and showorder
Author: jhchnc
Created: 2011-10-10 14:39:32+00:00
State: open

Using the file linked by aaronwp in issue 24 (with my company's credentials, of course, and a valid ticket group id and price, I can:

- createClient 1848
- createClientEmailAddress (152,153)
- createClientPhoneNumber 148
- createClientAddress 18613
- createOrder

If I add back in the createClientCreditCard, the script fails.

---

Using the createOrder order id (1228) I got in "offline" mode, using the script, I added on the following:

// Set up some default query options
$options = array(
'page' => 1,
'per_page' => 10,
);

echo 'showOrder
';
foreach( $results as $r ) {
print $r->id;
$results = $tevo->showOrder( $r->id );
echo '

showOrder

'; print_r($results); echo '

' . PHP_EOL;
}

echo 'listOrders
';
foreach( $results as $r ) {
$results = $tevo->listOrders( $options );
echo '

listOrder

'; print_r($results); echo '

' . PHP_EOL;
}

The script just stops after printing out:
showOrder
1228

That leads me to believe the API is failing me, or I'm failing it!

Questions:
- Where does this come from -- $creditCard1->ip_address = "37.235.140.72";
- Am I making the calls to "showOrder" and "listOrders" correctly?

Thank you very much, in advance,
John