home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / creditor.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  1.4 KB  |  37 lines

  1. <?php
  2. /**
  3. * Clieop CREDITOR sample
  4. *
  5. * $Revision: 1.2 $
  6. */
  7. include_once("Payment_Clieop/clieop.php");
  8. include_once("Payment_Clieop/clieop_transaction.php");
  9.  
  10. header("Content-type: text/plain");
  11.  
  12. $clieopFile = new ClieopPayment();
  13.  
  14. //set clieop properties
  15. $clieopFile->setTransactionType(CLIEOP_TRANSACTIE_BETALING);    // debtor transactions
  16. $clieopFile->setPrincipalAccountNumber("123456789");            // principal bank account number
  17. $clieopFile->setPrincipalName("PEAR CLIEOP CLASSES");            // Name of owner of principal account number
  18. $clieopFile->setFixedDescription("PHP: Scripting the web");        // description for all transactions
  19. $clieopFile->setSenderIdentification("PEAR");                    // Free identification
  20. $clieopFile->setTest(true);                                        // Test clieop
  21.  
  22.  
  23. //create creditor
  24. $creditor = new TransactionPayment(CLIEOP_TRANSACTIE_BETALING);
  25. $creditor->setAccountNumberSource("192837346");                    // my bank account number
  26. $creditor->setAccountNumberDest("123456789");                    // principal bank account number
  27. $creditor->setAmount(6900);                                        // amount in Eurocents (EUR 69.00)
  28. $creditor->setName("Dave Mertens");                                // Name of creditor (holder of source account)
  29. $creditor->setCity("Rotterdam");                                // City of creditor
  30. $creditor->setDescription("Like we promised, your money");                // Just some info
  31.  
  32. //assign creditor record to clieop
  33. $clieopFile->addPayment($creditor);
  34.  
  35. //Create clieop file
  36. echo $clieopFile->writeClieop();
  37. ?>