[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
[Code source] [Imprimer] [Statistiques]
paypalwpp.php payment module class for Paypal Express Checkout / Website Payments Pro / Payflow Pro payment methods
Copyright: | Copyright 2003-2007 Zen Cart Development Team |
Copyright: | Portions Copyright 2003 osCommerce |
License: | http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 |
Version: | $Id: paypalwpp.php 6528 2007-06-25 23:25:27Z drbyte $ |
Poids: | 2906 lignes (170 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
paypalwpp:: (44 méthodes):
paypalwpp()
update_status()
javascript_validation()
selection()
pre_confirmation_check()
confirmation()
process_button()
before_process()
after_process()
admin_notification()
_GetTransactionDetails()
_TransactionSearch()
get_error()
check()
install()
keys()
remove()
in_special_checkout()
alterShippingEditButton()
zcLog()
_doDebug()
paypal_init()
getPayPalLoginServer()
_doRefund()
_doAuth()
_doCapt()
_doVoid()
getLanguageCode()
selectCurrency()
calc_order_amount()
setStateAndCountry()
getLineItemDetails()
ec_step1()
ec_step2()
ec_step2_finish()
setShippingMethod()
getOverrideAddress()
findMatchingAddressBookEntry()
addAddressBookEntry()
user_login()
ec_delete_user()
terminateEC()
_errorHandler()
tableCheckup()
paypalwpp() X-Ref |
class constructor |
update_status() X-Ref |
Sets payment module status based on zone restrictions etc |
javascript_validation() X-Ref |
Validate the credit card information via javascript (Number, Owner, and CVV Lengths) |
selection() X-Ref |
Display Credit Card Information Submission Fields on the Checkout Payment Page |
pre_confirmation_check() X-Ref |
This is the credit card check done between checkout_payment and checkout_confirmation (called from checkout_confirmation). Evaluates the Credit Card Type for acceptance and the validity of the Credit Card Number & Expiration Date |
confirmation() X-Ref |
Display Credit Card Information for review on the Checkout Confirmation Page |
process_button() X-Ref |
Prepare the hidden fields comprising the parameters for the Submit button on the checkout confirmation page |
before_process() X-Ref |
Prepare and submit the final authorization to PayPal via the appropriate means as configured |
after_process() X-Ref |
When the order returns from the processor, this stores the results in order-status-history and logs data for subsequent use |
admin_notification($zf_order_id) X-Ref |
Build admin-page components param: int $zf_order_id return: string |
_GetTransactionDetails($oID) X-Ref |
Used to read details of an existing transaction. FOR FUTURE USE. |
_TransactionSearch($startDate = '', $oID = '', $criteria = '') X-Ref |
Used to read details of existing transactions. FOR FUTURE USE. |
get_error() X-Ref |
Display appropriate error message when needed |
check() X-Ref |
Evaluate installation status of this module. Returns true if the status key is found. |
install() X-Ref |
Installs all the configuration keys for this module |
keys() X-Ref |
Pas de description |
remove() X-Ref |
De-install this module |
in_special_checkout() X-Ref |
Check settings and conditions to determine whether we are in an Express Checkout phase or not |
alterShippingEditButton() X-Ref |
Determine whether the shipping-edit button should be displayed or not |
zcLog($stage, $message) X-Ref |
Debug Logging support |
_doDebug($subject = 'PayPal debug data', $data, $useSession = true) X-Ref |
Debug Emailing support |
paypal_init() X-Ref |
Initialize the PayPal/PayflowPro object for communication to the processing gateways |
getPayPalLoginServer() X-Ref |
Determine which PayPal URL to direct the customer's browser to when needed |
_doRefund($oID, $amount = 'Full', $note = '') X-Ref |
Used to submit a refund for a given transaction. FOR FUTURE USE. |
_doAuth($oID, $amt, $currency = 'USD') X-Ref |
Used to authorize part of a given previously-initiated transaction. FOR FUTURE USE. |
_doCapt($oID, $captureType = 'Complete', $amt = 0, $currency = 'USD', $note = '') X-Ref |
Used to capture part or all of a given previously-authorized transaction. FOR FUTURE USE. |
_doVoid($oID, $note = '') X-Ref |
Used to void a given previously-authorized transaction. FOR FUTURE USE. |
getLanguageCode() X-Ref |
Determine the language to use when visiting the PayPal site |
selectCurrency($val = '', $subset = 'EC') X-Ref |
Set the currency code -- use defaults if active currency is not a currency accepted by PayPal |
calc_order_amount($amount, $paypalCurrency, $applyFormatting = false) X-Ref |
Calculate the amount based on acceptable currencies |
setStateAndCountry(&$info) X-Ref |
Set the state field depending on what PayPal requires for that country. |
getLineItemDetails() X-Ref |
Prepare subtotal and line-item detail content to send to PayPal |
ec_step1() X-Ref |
This method sends the user to PayPal's site There, they will log in to their account, choose a funding source and shipping method and then return to our site with an EC token |
ec_step2() X-Ref |
This method is for step 2 of the express checkout option. This retrieves from PayPal the data set by step one and sets the Zen Cart data accordingly depending on admin settings. |
ec_step2_finish($paypal_ec_payer_info, $new_acct_notify) X-Ref |
Complete the step2 phase by creating accounts if needed, linking data, placing order, etc. |
setShippingMethod() X-Ref |
Determine the appropriate shipping method if applicable By default, selects the lowest-cost quote |
getOverrideAddress() X-Ref |
Get Override Address (uses sendto if set, otherwise uses customer's primary address) |
findMatchingAddressBookEntry($customer_id, $address_question_arr) X-Ref |
This method attempts to match items in an address book, to avoid duplicate entries to the address book. On a successful match it returns the address_book_id(int) - on failure it returns false. param: int $customer_id param: array $address_question_arr return: int|boolean |
addAddressBookEntry($customer_id, $address_question_arr, $make_default = false) X-Ref |
This method adds an address book entry to the database, this allows us to add addresses that we get back from PayPal that are not in Zen Cart param: int $customer_id param: array $address_question_arr return: int |
user_login($email_address, $redirect = true) X-Ref |
If we created an account for the customer, this logs them in and notes that the record was created for PayPal EC purposes |
ec_delete_user($cid) X-Ref |
If the account was created only for temporary purposes to place the PayPal order, delete it. |
terminateEC($error_msg = '', $kill_sess_vars = false, $goto_page = '') X-Ref |
If the EC flow has to be interrupted for any reason, this does the appropriate cleanup and displays status/error messages. |
_errorHandler($response, $operation = '', $ignore_codes = '') X-Ref |
Error / exception handling |
tableCheckup() X-Ref |
Pas de description |
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |