Exemple #1
0
 public function createDevelopmentEnvironmentRequest()
 {
     return new Request(Environment::set('development'), '123', 'My shop', 'my secret', '10.00', Currency::set('GBP'), 'https://secure-test.worldpay.com/wcc/purchase', []);
 }
Exemple #2
0
 /**
  * Get the request parameters
  *
  * @return array
  */
 private function getTheRequestParameters()
 {
     return array_merge(['instId' => $this->instId, 'cartId' => $this->cartId, 'currency' => (string) $this->currency, 'amount' => $this->amount, 'testMode' => $this->environment->asInt()], $this->parameters);
 }
 /** @test */
 public function environment_should_be_a_string()
 {
     $this->setExpectedException('Assert\\AssertionFailedException');
     $environment = Environment::set(['env' => 'production']);
 }