We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc02bdc commit 91f00e6Copy full SHA for 91f00e6
src/Message/CompletedPurchaseRequest.php
@@ -55,6 +55,7 @@ public function getData()
55
return [
56
'transaction_id' => $this->getTransactionId(),
57
'amount' => $this->getAmount(),
58
+ 'status' => $this->getStatus(),
59
'success' => App::STATUS_SUCCESS === $this->getStatus(),
60
];
61
}
tests/AppTest.php
@@ -51,7 +51,7 @@ public function testCompletePurchase()
51
'url_return' => 'http://localhost:8080/gateway/return',
52
'status' => App::STATUS_SUCCESS,
53
])->assertStatus(302)
54
- ->assertRedirect('http://localhost:8080/gateway/return');
+ ->assertRedirect('http://localhost:8080/gateway/return?status=ACEPTAR PAGO');
Http::assertSent(function ($request) {
return $request->url() === 'http://localhost:8080/gateway/notify';
0 commit comments