Class Mage_Paypal_Model_Express_Checkout
Wrapper that performs Paypal Express and Checkout communication Use current Paypal Express method instance
Direct known subclasses
Mage_PaypalUk_Model_Express_Checkout, Mage_XmlConnect_Model_Paypal_Mecl_CheckoutCopyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Paypal/Model/Express/Checkout.php
public
|
|
public
string
|
#
getCheckoutShortcutImageUrl( )
Checkout with PayPal image URL getter Spares API calls of getting "pal" variable, by putting it into cache per store view |
public
|
#
prepareGiropayUrls( string $successUrl, string $cancelUrl, string $pendingUrl )
Setter that enables giropay redirects flow |
public
|
|
public
|
|
public
|
#
setCustomerWithAddressChange(
Setter for customer with billing and shipping address changing ability |
public
mixed
|
|
public
|
#
returnFromPaypal( string $token )
Update quote when returned from PayPal rewrite billing address by paypal save old billing address for new customer export shipping address in case address absence |
public
|
#
prepareOrderReview( mixed $token = null )
Check whether order review has enough data to initialize |
public
string
|
#
getShippingOptionsCallbackResponse( array $request )
Return callback response with shipping options |
public
|
|
public
|
|
public
|
|
private
|
|
public
string
|
|
public
array
|
|
public
|
|
public
|
|
public
string
|
|
protected
|
#
_setExportedAddressData(
Sets address data from exported address |
protected
|
|
protected
|
|
protected
array|false
|
#
_prepareShippingOptions(
Attempt to collect address shipping rates and return them for further usage in instant update API Returns empty array if it was impossible to obtain any shipping rate If there are shipping rates obtained, the method must return one of them as default. |
protected static
integer
|
#
cmpShippingOptions( Varien_Object $option1, Varien_Object $option2 )
Compare two shipping options based on their amounts |
protected
string
|
#
_matchShippingMethodCode(
Try to find whether the code provided by PayPal corresponds to any of possible shipping rates This method was created only because PayPal has issues with returning the selected code. If in future the issue is fixed, we don't need to attempt to match it. It would be enough to set the method code before collecting shipping rates |
protected
|
|
protected
|
#
_prepareNewCustomerQuote( )
Prepare quote for customer registration and customer order submit and restore magento customer data from quote |
protected
|
|
protected
|
|
public
|
string |
PAL_CACHE_ID
|
'paypal_express_checkout_pal' |
#
Cache ID prefix for "pal" lookup |
string |
PAYMENT_INFO_TRANSPORT_TOKEN
|
'paypal_express_checkout_token' |
#
Keys for passthrough variables in sales/quote_payment and sales/order_payment Uses additional_information as storage |
string |
PAYMENT_INFO_TRANSPORT_SHIPPING_OVERRIDEN
|
'paypal_express_checkout_shipping_overriden' |
|
string |
PAYMENT_INFO_TRANSPORT_SHIPPING_METHOD
|
'paypal_express_checkout_shipping_method' |
|
string |
PAYMENT_INFO_TRANSPORT_PAYER_ID
|
'paypal_express_checkout_payer_id' |
|
string |
PAYMENT_INFO_TRANSPORT_REDIRECT
|
'paypal_express_checkout_redirect_required' |
|
string |
PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT
|
'paypal_ec_create_ba' |
protected
|
$_quote | null |
|
protected
|
$_config | null |
#
Config instance |
protected
|
$_api | null |
#
API instance |
protected
string
|
$_apiType | 'paypal/api_nvp' |
#
Api Model Type |
protected
unknown_type
|
$_methodType |
|
#
Payment method type |
protected
string
|
$_redirectUrl | '' |
#
State helper variables |
protected
string
|
$_pendingPaymentMessage | '' |
|
protected
string
|
$_checkoutRedirectUrl | '' |
|
protected
|
$_customerSession |
|
|
protected
array
|
$_giropayUrls | array() |
#
Redirect urls supposed to be set to support giropay |
protected
boolean
|
$_isBARequested | false |
#
Create Billing Agreement flag |
protected
integer
|
$_customerId | null |
#
Customer ID |
protected
array
|
$_recurringPaymentProfiles | array() |
#
Recurring payment profiles |
protected
|
$_billingAgreement | null |
#
Billing agreement that might be created during order placing |
protected
Mage_Sales_Model_QuoteMage_Sales_Model_Quote
|
$_order | null |
#
Order |