- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
private function exportPTCsvFile(array $transactions, array $refunds, $fileName)
{
$csv[] = array('Date', 'Time Zone', 'Name', 'Type', ' Status', 'Currency', 'Gross', 'Fee', 'Net', 'From Email Address', 'Transaction ID', ' Item Title', 'Deal ID', 'Deal City', 'Merchant ID', 'User ID', 'Purchase Date', 'CMS Transaction ID', 'CMS Quantity', 'CMS Amount', 'Kash Used', 'CC Digits', 'Coupon Link', 'Paymentech Response');
// headers...
foreach ($csv as $titles) {
print utf8_encode(implode(',', $titles))."\n";
}
// Rest of code...
}