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_GoogleCheckout_ApiController
  • Mage_GoogleCheckout_Block_Adminhtml_Shipping_Applicable_Countries
  • Mage_GoogleCheckout_Block_Adminhtml_Shipping_Merchant
  • Mage_GoogleCheckout_Block_Form
  • Mage_GoogleCheckout_Block_Link
  • Mage_GoogleCheckout_Block_Redirect
  • Mage_GoogleCheckout_Helper_Data
  • Mage_GoogleCheckout_Model_Api
  • Mage_GoogleCheckout_Model_Api_Debug
  • Mage_GoogleCheckout_Model_Api_Xml_Abstract
  • Mage_GoogleCheckout_Model_Api_Xml_Calculate
  • Mage_GoogleCheckout_Model_Api_Xml_Callback
  • Mage_GoogleCheckout_Model_Api_Xml_Checkout
  • Mage_GoogleCheckout_Model_Api_Xml_Order
  • Mage_GoogleCheckout_Model_Mysql4_Api_Debug
  • Mage_GoogleCheckout_Model_Mysql4_Api_Debug_Collection
  • Mage_GoogleCheckout_Model_Mysql4_Notification
  • Mage_GoogleCheckout_Model_Mysql4_Setup
  • Mage_GoogleCheckout_Model_Mysql4_Tax
  • Mage_GoogleCheckout_Model_Notification
  • Mage_GoogleCheckout_Model_Observer
  • Mage_GoogleCheckout_Model_Payment
  • Mage_GoogleCheckout_Model_Resource_Api_Debug
  • Mage_GoogleCheckout_Model_Resource_Api_Debug_Collection
  • Mage_GoogleCheckout_Model_Resource_Notification
  • Mage_GoogleCheckout_Model_Resource_Setup
  • Mage_GoogleCheckout_Model_Resource_Tax
  • Mage_GoogleCheckout_Model_Shipping
  • Mage_GoogleCheckout_Model_Source_Checkout_Image
  • Mage_GoogleCheckout_Model_Source_Locale
  • Mage_GoogleCheckout_Model_Source_Shipping_Carrier
  • Mage_GoogleCheckout_Model_Source_Shipping_Category
  • Mage_GoogleCheckout_Model_Source_Shipping_Units
  • Mage_GoogleCheckout_Model_Source_Shipping_Virtual_Method
  • Mage_GoogleCheckout_Model_Source_Shipping_Virtual_Schedule
  • Mage_GoogleCheckout_RedirectController

Exceptions

  • Mage_GoogleCheckout_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Mage_GoogleCheckout_Model_Api_Xml_Callback

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@magentocommerce.com so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Varien_Object
Extended by Mage_GoogleCheckout_Model_Api_Xml_Abstract
Extended by Mage_GoogleCheckout_Model_Api_Xml_Callback
Package: Mage\GoogleCheckout
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/GoogleCheckout/Model/Api/Xml/Callback.php
Methods summary
public Mage_GoogleCheckout_Model_Api_Xml_Callback
# process( )

Process notification from google

Process notification from google

Returns

Mage_GoogleCheckout_Model_Api_Xml_Callback
protected Mage_Sales_Model_Quote
# _loadQuote( )

Load quote from request and make sure the proper payment method is set

Load quote from request and make sure the proper payment method is set

Returns

Mage_Sales_Model_Quote
protected
# _getApiUrl( )
protected
# getGoogleOrderNumber( )
protected
# _responseRequestReceived( )
protected
# _responseError( )
protected
# _responseDiagnosis( )
protected
# _responseCheckoutRedirect( )
protected
# _responseMerchantCalculationCallback( )

Calculate available shipping amounts and taxes

Calculate available shipping amounts and taxes

protected
# _applyShippingTaxClass( Varien_Object $qAddress, mixed $shippingTaxClass )

Apply shipping tax class

Apply shipping tax class

Parameters

$qAddress
Varien_Object
$qAddress
$shippingTaxClass
mixed
$shippingTaxClass
protected
# _responseNewOrderNotification( )

Process new order creation notification from google. Convert customer quote to order

Process new order creation notification from google. Convert customer quote to order

protected string
# _applyCustomTax( Varien_Object $qAddress )

If tax value differs tax which is setted on magento, apply Google tax and recollect quote

If tax value differs tax which is setted on magento, apply Google tax and recollect quote

Parameters

$qAddress
Varien_Object
$qAddress

Returns

string
| false
protected Varien_Object
# _importGoogleAddress( array $gAddress, Varien_Object $qAddress = null )

Import address data from google request to address object

Import address data from google request to address object

Parameters

$gAddress
array
| Varien_Object $gAddress
$qAddress
Varien_Object
$qAddress

Returns

Varien_Object
protected array
# _getShippingInfos( mixed $storeId = null )

Returns array of possible shipping methods combinations Includes internal GoogleCheckout shipping methods, that can be created after successful Google Checkout

Returns array of possible shipping methods combinations Includes internal GoogleCheckout shipping methods, that can be created after successful Google Checkout

Returns

array
protected string|false
# _getShippingMethodByName( string $name, integer|string|Mage_Core_Model_Store $storeId = null )

Return shipping method code by shipping method name received from Google

Return shipping method code by shipping method name received from Google

Parameters

$name
string
$name
$storeId
integer|string|Mage_Core_Model_Store
$storeId

Returns

string|false
protected Mage_Sales_Model_Quote_Address_Rate
# _createShippingRate( string $code, mixed $storeId = null )

Creates rate by method code Sets shipping rate's accurate description, titles and so on, so it will get in order description properly

Creates rate by method code Sets shipping rate's accurate description, titles and so on, so it will get in order description properly

Parameters

$code
string
$code
$storeId

Returns

Mage_Sales_Model_Quote_Address_Rate
protected
# _importGoogleTotals( Varien_Object $qAddress )

Import totals information from google request to quote address

Import totals information from google request to quote address

Parameters

$qAddress
Varien_Object
$qAddress
public Mage_Sales_Model_Order
# getOrder( )

Order getter

Order getter

Returns

Mage_Sales_Model_Order
protected
# _responseRiskInformationNotification( )
protected
# _responseAuthorizationAmountNotification( )

Process authorization notification

Process authorization notification

protected
# _responseChargeAmountNotification( )

Process charge notification

Process charge notification

protected
# _createInvoice( )
protected
# _createShipment( )
protected
# _responseChargebackAmountNotification( )

Process chargeback notification

Process chargeback notification

protected
# _responseRefundAmountNotification( )

Process refund notification

Process refund notification

protected
# _responseOrderStateChangeNotification( )
protected Mage_GoogleCheckout_Model_Api_Xml_Callback
# _addChildTransaction( string $typeTarget, string $typeParent = Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH )

Add transaction to payment with defined type

Add transaction to payment with defined type

Parameters

$typeTarget
string
$typeTarget
$typeParent
string
$typeParent

Returns

Mage_GoogleCheckout_Model_Api_Xml_Callback
protected
# _orderStateChangeFinancialReviewing( )
protected
# _orderStateChangeFinancialChargeable( )
protected
# _orderStateChangeFinancialCharging( )
protected
# _orderStateChangeFinancialCharged( )
protected
# _orderStateChangeFinancialPaymentDeclined( )
protected
# _orderStateChangeFinancialCancelled( )
protected
# _orderStateChangeFinancialCancelledByGoogle( )
protected
# _orderStateChangeFulfillmentNew( )
protected
# _orderStateChangeFulfillmentProcessing( )
protected
# _orderStateChangeFulfillmentDelivered( )
protected
# _orderStateChangeFulfillmentWillNotDeliver( )
protected string
# _formatAmount( mixed $amount )

Format amount to be displayed

Format amount to be displayed

Parameters

$amount
mixed
$amount

Returns

string
Methods inherited from Mage_GoogleCheckout_Model_Api_Xml_Abstract
__(), _call(), _getBaseApiUrl(), _getCallbackUrl(), _getTaxClassForShipping(), _reCalculateToStoreCurrency(), getCurrency(), getGRequest(), getGResponse(), getLocale(), getMerchantId(), getMerchantKey(), getServerType(), log()
Properties summary
protected array $_cachedShippingInfo array()
#
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0