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')); }
/** * 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); }
/** */ public function testSave_ShippingIdDoNotExistsDeliverySetNotMarkedAsSet_ShippingIdEmpty() { $oPayPalDeliverySet_Main = $this->_getDeliverySet(); $oPayPalConfig = new oePayPalConfig(); $sMobileECDefaultShippingId = $oPayPalConfig->getMobileECDefaultShippingId(); $this->assertEquals('', $sMobileECDefaultShippingId); }
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()); }