コード例 #1
0
 public function providerHandleRequest()
 {
     $oConfig = new oePayPalConfig();
     $sRealShopOwner = $oConfig->getUserEmail();
     $sNotRealShopOwner = '*****@*****.**';
     return array(array($sRealShopOwner, array('VERIFIED' => true), true, 'completed', false, '__handleRequest_transaction', 124.45, 'EUR', 'Completed', '__handleRequest_transaction', 124.45, 'EUR', 'Completed'), array($sRealShopOwner, array('Not-VERIFIED' => true), false, 'pending', false, '__handleRequest_transaction', 1.45, 'USD', 'Completed', '__handleRequest_transaction', 124.45, 'EUR', 'Pending'), array($sNotRealShopOwner, array('VERIFIED' => true), false, 'pending', false, '__handleRequest_transaction', 121.45, 'EUR', 'Completed', '__handleRequest_transaction', 124.45, 'EUR', 'Pending'), array($sRealShopOwner, array('VERIFIED' => true), true, 'failed', true, '__handleRequest_transaction', 121.45, 'EUR', 'Completed', '__handleRequest_transaction', 124.45, 'EUR', 'Completed'), array($sRealShopOwner, array('VERIFIED' => true), true, 'failed', true, '__handleRequest_transaction', 124.45, 'USD', 'Completed', '__handleRequest_transaction', 124.45, 'EUR', 'Completed'));
 }
コード例 #2
0
 /**
  * Save default shipping id.
  *
  * @param oxConfig       $oConfig       Config object to save.
  * @param string         $sShippingId   Shipping id.
  * @param oePayPalConfig $oPayPalConfig PayPal config.
  */
 protected function _saveECDefaultShippingId($oConfig, $sShippingId, $oPayPalConfig)
 {
     $sPayPalModuleId = 'module:' . $oPayPalConfig->getModuleId();
     $oConfig->saveShopConfVar('string', 'sOEPayPalMECDefaultShippingId', $sShippingId, null, $sPayPalModuleId);
 }
コード例 #3
0
 /**
  */
 public function testSave_ShippingIdDoNotExistsDeliverySetNotMarkedAsSet_ShippingIdEmpty()
 {
     $oPayPalDeliverySet_Main = $this->_getDeliverySet();
     $oPayPalConfig = new oePayPalConfig();
     $sMobileECDefaultShippingId = $oPayPalConfig->getMobileECDefaultShippingId();
     $this->assertEquals('', $sMobileECDefaultShippingId);
 }
コード例 #4
0
 public function testIsMobile_notMobileDevice_false()
 {
     $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0';
     $oConfig = new oePayPalConfig();
     $this->assertFalse($oConfig->isDeviceMobile());
 }