useContext('pingback', new PingbackContext(array())); $this->useContext('widget', new WidgetContext(array())); $this->useContext('charge', new ChargeContext(array())); } /** * @Given /^Public key "([^"]*)"$/ */ public function publicKey($publicKey) { Paymentwall_Base::setAppKey($publicKey); } /** * @Given /^Secret key "([^"]*)"$/ */ public function secretKey($secretKey) { Paymentwall_Base::setSecretKey($secretKey); } /** * @Given /^Private key "([^"]*)"$/ */ public function privateKey($privateKey) { Paymentwall_Config::getInstance()->set(array( 'private_key' => $privateKey )); } /** * @Given /^API type "([^"]*)"$/ */ public function apiType($apiType) { Paymentwall_Base::setApiType($apiType); $this->apiType = $apiType; } }