public function test_creditAmount_creditPaymentPlan_amount_exceeds_orderamount() { $config = Svea\SveaConfig::getDefaultConfig(); $orderInfo = $this->get_orderInfo_sent_inc_vat(1000.0, 25, 1, TRUE); $credit = WebPayAdmin::creditAmount($config)->setContractNumber($orderInfo->contractNumber)->setCountryCode('SE')->setDescription('credit desc')->setAmountIncVat(1500.0)->creditPaymentPlanAmount()->doRequest(); $this->assertEquals(0, $credit->accepted); }