Skip to content

Commit 91f00e6

Browse files
authored
Fix status (#7)
* fis status * fix test
1 parent cc02bdc commit 91f00e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Message/CompletedPurchaseRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function getData()
5555
return [
5656
'transaction_id' => $this->getTransactionId(),
5757
'amount' => $this->getAmount(),
58+
'status' => $this->getStatus(),
5859
'success' => App::STATUS_SUCCESS === $this->getStatus(),
5960
];
6061
}

tests/AppTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCompletePurchase()
5151
'url_return' => 'http://localhost:8080/gateway/return',
5252
'status' => App::STATUS_SUCCESS,
5353
])->assertStatus(302)
54-
->assertRedirect('http://localhost:8080/gateway/return');
54+
->assertRedirect('http://localhost:8080/gateway/return?status=ACEPTAR PAGO');
5555

5656
Http::assertSent(function ($request) {
5757
return $request->url() === 'http://localhost:8080/gateway/notify';

0 commit comments

Comments
 (0)