Payment_Clieop
[ class tree: Payment_Clieop ] [ index: Payment_Clieop ] [ all elements ]

Source for file creditor.php

Documentation is available at creditor.php

  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->setAccountNumberSource("192837346");                    // my bank account number
  25. $creditor->setAccountNumberDest("123456789");                    // principal bank account number
  26. $creditor->setAmount(6900);                                        // amount in Eurocents (EUR 69.00)
  27. $creditor->setName("Dave Mertens");                                // Name of creditor (holder of source account)
  28. $creditor->setCity("Rotterdam");                                // City of creditor
  29. $creditor->setDescription("Like we promised, your money");                // Just some info
  30.  
  31. //assign creditor record to clieop
  32. $clieopFile->addPayment($creditor);
  33.  
  34. //Create clieop file
  35. echo $clieopFile->writeClieop();
  36. ?>

Documentation generated on Mon, 11 Mar 2019 14:57:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.