Mage_AmazonPayments_Block_Link_Shortcut Class Reference

Inheritance diagram for Mage_AmazonPayments_Block_Link_Shortcut:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getCheckoutUrl ()
 getImageUrl ()
 _toHtml ()
 getCbaOneClickJsUrl ()
 getCbaStylesheetUrl ()
 getCbaJquerySetupUrl ()
 getIsOneClickEnabled ()


Detailed Description

Definition at line 34 of file Shortcut.php.


Member Function Documentation

_toHtml (  ) 

Render block HTML

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 48 of file Shortcut.php.

00049     {
00050         if (Mage::getStoreConfigFlag('payment/amazonpayments_cba/active')
00051             && Mage::getSingleton('checkout/session')->getQuote()->validateMinimumAmount()) {
00052             return parent::_toHtml();
00053         }
00054 
00055         return '';
00056     }

getCbaJquerySetupUrl (  ) 

Definition at line 74 of file Shortcut.php.

00075     {
00076         $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/js/jquery.js';
00077         return $url;
00078     }

getCbaOneClickJsUrl (  ) 

Definition at line 58 of file Shortcut.php.

00059     {
00060         if (Mage::getStoreConfigFlag('payment/amazonpayments_cba/sandbox_flag')) {
00061             $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/js/widget/sandbox/widget.js';
00062         } else {
00063             $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/js/widget/widget.js';
00064         }
00065         return $url;
00066     }

getCbaStylesheetUrl (  ) 

Definition at line 68 of file Shortcut.php.

00069     {
00070         $url = 'https://images-na.ssl-images-amazon.com/images/G/01/cba/styles/one-click.css';
00071         return $url;
00072     }

getCheckoutUrl (  ) 

Definition at line 36 of file Shortcut.php.

00037     {
00038         #return $this->getUrl('amazonpayments/cba', array('_secure'=>true));
00039         return $this->getUrl('amazonpayments/cba/shortcut');
00040     }

getImageUrl (  ) 

Definition at line 42 of file Shortcut.php.

00043     {
00044         return Mage::getStoreConfig('payment/amazonpayments_cba/button_url');
00045         #return 'http://g-ecx.images-amazon.com/images/G/01/cba/images/buttons/btn_Chkout-orange-large.gif';
00046     }

getIsOneClickEnabled (  ) 

Return true if 1-Click is enabled

Returns:
boolean

Definition at line 85 of file Shortcut.php.

00086     {
00087         return Mage::getStoreConfigFlag('payment/amazonpayments_cba/use_oneclick');
00088     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:30 2009 for Magento by  doxygen 1.5.8