Skip to content

Commit

Permalink
false
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed Sep 8, 2024
1 parent 75cfa25 commit f2eb8bc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Message/GetPaymentInfoResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class GetPaymentInfoResponse extends CompletePurchaseResponse
*/
public function isSuccessful()
{
return $this->getCode() === '5';
return false;
}
}
2 changes: 1 addition & 1 deletion tests/GatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function testGetPaymentInfo(): void
]);
$response = $this->gateway->completePurchase()->send();

self::assertTrue($response->isSuccessful());
self::assertFalse($response->isSuccessful());
self::assertEquals('成功', $response->getMessage());
self::assertEquals('20151202001', $response->getTransactionId());
self::assertEquals([
Expand Down
1 change: 0 additions & 1 deletion tests/Message/CompletePurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Omnipay\MyCash\Tests\Message;

use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Common\Exception\InvalidResponseException;
use Omnipay\MyCash\Message\CompletePurchaseRequest;
use Omnipay\Tests\TestCase;
Expand Down

0 comments on commit f2eb8bc

Please sign in to comment.