Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Adds cvd purchase test
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 23, 2016
1 parent dc13140 commit 54b995d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/GatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,24 @@ public function it_can_make_a_purchase_and_receive_a_response()
$this->assertTrue($response->successful);
}

/** @test */
public function it_can_make_a_cvd_secured_purchase_and_receive_a_response()
{
$params = ['environment' => $this->environment, 'cvd' => true];
$gateway = Moneris::create($this->id, $this->token, $params);
$params = [
'cvd' => '111',
'order_id' => uniqid('1234-56789', true),
'amount' => '1.00',
'credit_card' => $this->visa,
'expdate' => '2012',
];
$response = $gateway->purchase($params);

$this->assertEquals(Response::class, get_class($response));
$this->assertTrue($response->successful);
}

/** @test */
public function it_can_pre_authorize_a_purchase_and_receive_a_response()
{
Expand Down

0 comments on commit 54b995d

Please sign in to comment.