コード例 #1
0
ファイル: RequestTest.php プロジェクト: philipbrown/worldpay
 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', []);
 }
コード例 #2
0
ファイル: Request.php プロジェクト: philipbrown/worldpay
 /**
  * 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);
 }
コード例 #3
0
 /** @test */
 public function environment_should_be_a_string()
 {
     $this->setExpectedException('Assert\\AssertionFailedException');
     $environment = Environment::set(['env' => 'production']);
 }