[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/modules/payment/paypal/ -> paypal_functions.php (sommaire)

(pas de description)

Poids: 554 lignes (30 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 18 fonctions

  datetime_to_sql_format()
  ipn_debug_email()
  ipn_get_stored_session()
  ipn_lookup_transaction()
  ipn_validate_transaction()
  select_pp_currency()
  valid_payment()
  ipn_determine_txn_type()
  ipn_create_order_array()
  ipn_create_order_history_array()
  ipn_create_order_update_array()
  ipn_simulate_ipn_handler()
  ipn_add_error_log()
  ipn_fopen()
  getRequestBodyContents()
  ipn_postback()
  ipn_update_orders_status_and_history()
  replace_accents()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

datetime_to_sql_format($paypalDateTime)   X-Ref
functions used by payment module class for Paypal IPN payment method


ipn_debug_email($message, $email_address = '', $always_send = false, $subjecttext = 'IPN DEBUG message')   X-Ref
Pas de description

ipn_get_stored_session($session_stuff)   X-Ref
Pas de description

ipn_lookup_transaction($postArray)   X-Ref
look up parent/original transaction record data and return matching order info if found, along with txn_type


ipn_validate_transaction($info, $postArray, $mode='IPN')   X-Ref
IPN Validation
- match email addresses
- ensure that "VERIFIED" has been returned (otherwise somebody is trying to spoof)


select_pp_currency()   X-Ref
Pas de description

valid_payment($amount, $currency, $mode = 'IPN')   X-Ref
Pas de description

ipn_determine_txn_type($postArray, $txn_type = 'unknown')   X-Ref
is this an existing transaction?
(1) we find a matching record in the "paypal" table
(2) we check for valid txn_types or payment_status such as Denied, Refunded, Partially-Refunded, Reversed, Voided, Expired


ipn_create_order_array($new_order_id, $txn_type)   X-Ref
Create order record from IPN data


ipn_create_order_history_array($insert_id)   X-Ref
Create order-history record from IPN data


ipn_create_order_update_array($txn_type)   X-Ref
Create order-update from IPN data


ipn_simulate_ipn_handler($count)   X-Ref
simulator


ipn_add_error_log($message, $paypal_instance_id = '')   X-Ref
Debug logging


ipn_fopen($filename)   X-Ref
Debug to file


getRequestBodyContents(&$handle)   X-Ref
Pas de description

ipn_postback($mode = 'IPN')   X-Ref
Verify IPN by sending it back to PayPal for confirmation


ipn_update_orders_status_and_history($ordersID, $new_status = 1, $txn_type)   X-Ref
Write order-history update to ZC tables denoting the update supplied by the IPN


replace_accents($s)   X-Ref
strip out accented characters to reasonable approximations of english equivalents




Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics