/** * */ public function testDeclinedSale() { $ppr = new \CityPay\PayPost\PayPostRequest(); $ppr->merchantId(self::getElectronicCommerceLowPassMID())->licenceKey(self::getElectronicCommerceLowPassLicenceKey())->identifier("PayPost_PHP_SDK_DeclinedSaleTest")->amount(3333)->currency("GBP")->billToName("Mr Round")->billToPostCode("JE2 3RL")->cardNumber("4000000000000002")->expiryMonth(12)->expiryYear(2016)->csc("123"); $apiMessage = self::execute(self::SALE, "testUnsuccessfulSaleTest", $ppr); $this->assertTrue($apiMessage instanceof CityPay\PayPost\PayPostResponse, 'Assert response object is of type CityPay\\PayPost\\PayPostResponse'); }
/** * * @param type $apiConfig */ function __construct($apiConfig = \CityPay\Config\DefaultConfig::class) { parent::__construct($apiConfig); }