Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Paypal_Adminhtml_Paypal_ReportsController
  • Mage_Paypal_Block_Adminhtml_Settlement_Details
  • Mage_Paypal_Block_Adminhtml_Settlement_Details_Form
  • Mage_Paypal_Block_Adminhtml_Settlement_Report
  • Mage_Paypal_Block_Adminhtml_Settlement_Report_Grid
  • Mage_Paypal_Block_Adminhtml_System_Config_ApiWizard
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Country
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Hidden
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Expanded
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Group
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Hint
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Location
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Payment
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Store
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Advanced
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Info
  • Mage_Paypal_Block_Express_Form
  • Mage_Paypal_Block_Express_Review
  • Mage_Paypal_Block_Express_Review_Billing
  • Mage_Paypal_Block_Express_Review_Details
  • Mage_Paypal_Block_Express_Review_Shipping
  • Mage_Paypal_Block_Express_Shortcut
  • Mage_Paypal_Block_Hosted_Pro_Form
  • Mage_Paypal_Block_Hosted_Pro_Iframe
  • Mage_Paypal_Block_Hosted_Pro_Info
  • Mage_Paypal_Block_Iframe
  • Mage_Paypal_Block_Logo
  • Mage_Paypal_Block_Payflow_Advanced_Form
  • Mage_Paypal_Block_Payflow_Advanced_Iframe
  • Mage_Paypal_Block_Payflow_Advanced_Info
  • Mage_Paypal_Block_Payflow_Link_Form
  • Mage_Paypal_Block_Payflow_Link_Iframe
  • Mage_Paypal_Block_Payflow_Link_Info
  • Mage_Paypal_Block_Payment_Info
  • Mage_Paypal_Block_Standard_Form
  • Mage_Paypal_Block_Standard_Redirect
  • Mage_Paypal_Controller_Express_Abstract
  • Mage_Paypal_ExpressController
  • Mage_Paypal_Helper_Data
  • Mage_Paypal_Helper_Hss
  • Mage_Paypal_HostedproController
  • Mage_Paypal_IpnController
  • Mage_Paypal_Model_Api_Abstract
  • Mage_Paypal_Model_Api_Nvp
  • Mage_Paypal_Model_Api_Standard
  • Mage_Paypal_Model_Cart
  • Mage_Paypal_Model_Cert
  • Mage_Paypal_Model_Config
  • Mage_Paypal_Model_Direct
  • Mage_Paypal_Model_Express
  • Mage_Paypal_Model_Express_Checkout
  • Mage_Paypal_Model_Hostedpro
  • Mage_Paypal_Model_Hostedpro_Request
  • Mage_Paypal_Model_Info
  • Mage_Paypal_Model_Ipn
  • Mage_Paypal_Model_Method_Agreement
  • Mage_Paypal_Model_Mysql4_Cert
  • Mage_Paypal_Model_Mysql4_Report_Settlement
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Mysql4_Setup
  • Mage_Paypal_Model_Observer
  • Mage_Paypal_Model_Payflow_Request
  • Mage_Paypal_Model_Payflowadvanced
  • Mage_Paypal_Model_Payflowlink
  • Mage_Paypal_Model_Payflowpro
  • Mage_Paypal_Model_Payment_Transaction
  • Mage_Paypal_Model_Pro
  • Mage_Paypal_Model_Report_Settlement
  • Mage_Paypal_Model_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Cert
  • Mage_Paypal_Model_Resource_Report_Settlement
  • Mage_Paypal_Model_Resource_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Resource_Setup
  • Mage_Paypal_Model_Session
  • Mage_Paypal_Model_Standard
  • Mage_Paypal_Model_System_Config_Backend_Cert
  • Mage_Paypal_Model_System_Config_Backend_Cron
  • Mage_Paypal_Model_System_Config_Backend_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_BuyerCountry
  • Mage_Paypal_Model_System_Config_Source_FetchingSchedule
  • Mage_Paypal_Model_System_Config_Source_Logo
  • Mage_Paypal_Model_System_Config_Source_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_PaymentActions
  • Mage_Paypal_Model_System_Config_Source_PaymentActions_Express
  • Mage_Paypal_Model_System_Config_Source_RequireBillingAddress
  • Mage_Paypal_Model_System_Config_Source_UrlMethod
  • Mage_Paypal_PayflowadvancedController
  • Mage_Paypal_PayflowController
  • Mage_Paypal_StandardController

Exceptions

  • Mage_Paypal_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Paypal_Model_Ipn

PayPal Instant Payment Notification processor model

Package: Mage\Paypal
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/Paypal/Model/Ipn.php
Methods summary
public array|string
# getRequestData( string $key = null )

IPN request data getter

IPN request data getter

Parameters

$key
string
$key

Returns

array|string
public
# processIpnRequest( array $request, Zend_Http_Client_Adapter_Interface $httpAdapter = null )

Get ipn data, send verification to PayPal, run corresponding handler

Get ipn data, send verification to PayPal, run corresponding handler

Parameters

$request
array
$request
$httpAdapter
Zend_Http_Client_Adapter_Interface
$httpAdapter

Throws

Exception
protected
# _postBack( Zend_Http_Client_Adapter_Interface $httpAdapter )

Post back to PayPal to check whether this request is a valid one

Post back to PayPal to check whether this request is a valid one

Parameters

$httpAdapter
Zend_Http_Client_Adapter_Interface
$httpAdapter
protected Mage_Sales_Model_Order
# _getOrder( )

Load and validate order, instantiate proper configuration

Load and validate order, instantiate proper configuration

Returns

Mage_Sales_Model_Order

Throws

Exception
protected Mage_Sales_Model_Recurring_Profile
# _getRecurringProfile( )

Load recurring profile

Load recurring profile

Returns

Mage_Sales_Model_Recurring_Profile

Throws

Exception
protected
# _verifyOrder( )

Validate incoming request data, as PayPal recommends

Validate incoming request data, as PayPal recommends

Throws

Exception

Link

https://cms.paypal.com/cgi-bin/marketingweb?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro
protected
# _processOrder( )

IPN workflow implementation Everything should be added to order comments. In positive processing cases customer will get email notifications. Admin will be notified on errors.

IPN workflow implementation Everything should be added to order comments. In positive processing cases customer will get email notifications. Admin will be notified on errors.

protected
# _processRecurringProfile( )

Process notification from recurring profile payments

Process notification from recurring profile payments

protected
# _registerRecurringProfilePaymentCapture( )

Register recurring payment notification, create and process order

Register recurring payment notification, create and process order

protected
# _registerPaymentCapture( )

Process completed payment (either full or partial)

Process completed payment (either full or partial)

protected
# _registerPaymentDenial( )

Process denied payment notification

Process denied payment notification

protected
# _registerPaymentFailure( )

Treat failed payment as order cancellation

Treat failed payment as order cancellation

protected
# _registerPaymentRefund( )

Process a refund or a chargeback

Process a refund or a chargeback

protected
# _registerPaymentReversal( )

Process payment reversal notification

Process payment reversal notification

public
# _registerPaymentPending( )

Process payment pending notification

Process payment pending notification

Throws

Exception
protected
# _registerPaymentAuthorization( )

Register authorized payment

Register authorized payment

protected
# _registerPaymentVoid( )

Process voided authorization

Process voided authorization

protected
# _registerMasspaymentsSuccess( )

TODO The status "Processed" is used when all Masspayments are successful

TODO The status "Processed" is used when all Masspayments are successful

protected string|Mage_Sales_Model_Order_Status_History
# _createIpnComment( string $comment = '', boolean $addToHistory = false )

Generate an "IPN" comment with additional explanation. Returns the generated comment or order status history object

Generate an "IPN" comment with additional explanation. Returns the generated comment or order status history object

Parameters

$comment
string
$comment
$addToHistory
boolean
$addToHistory

Returns

string|Mage_Sales_Model_Order_Status_History
protected boolean
# _importPaymentInformation( )

Map payment information from IPN to payment object Returns true if there were changes in information

Map payment information from IPN to payment object Returns true if there were changes in information

Returns

boolean
protected string
# _filterPaymentStatus( string $ipnPaymentStatus )

Filter payment status from NVP into paypal/info format

Filter payment status from NVP into paypal/info format

Parameters

$ipnPaymentStatus
string
$ipnPaymentStatus

Returns

string
protected
# _debug( )

Log debug data to file

Log debug data to file

Constants summary
string DEFAULT_LOG_FILE 'paypal_unknown_ipn.log'
#

Default log filename

Default log filename

Properties summary
protected mixed $_order null
#
protected mixed $_recurringProfile null
#
protected Mage_Paypal_Model_Config $_config null
#
protected Mage_Paypal_Model_Info $_info null
#

PayPal info instance

PayPal info instance

protected array $_request array()
#

IPN request data

IPN request data

protected array $_debugData array()
#

Collected debug information

Collected debug information

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0