File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
33Tất cả lịch sử tiến trình phát triển thư viện
4+
5+ ## 1.0.1
6+
7+ - Implement phương thức ` isCancelled ` ở lớp ` \Omnipay\OnePay\Message\Response ` .
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ trait RequestEndpoint
2424 protected $ testEndpoint ;
2525
2626 /**
27- * Trả về url kết nối MoMo .
27+ * Trả về url kết nối OnePay .
2828 *
2929 * @return string
3030 */
Original file line number Diff line number Diff line change 1717trait ResponseSignatureValidation
1818{
1919 /**
20- * Kiểm tra tính hợp lệ của dữ liệu do MoMo phản hồi.
20+ * Kiểm tra tính hợp lệ của dữ liệu do OnePay phản hồi.
2121 *
2222 * @throws InvalidResponseException
2323 */
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Response extends AbstractResponse
2020 use Concerns \ResponseProperties;
2121
2222 /**
23- * Trả về trạng thái do MoMo phản hồi.
23+ * Trả về trạng thái thành công hay không do OnePay phản hồi.
2424 *
2525 * @return bool
2626 */
@@ -30,7 +30,17 @@ public function isSuccessful(): bool
3030 }
3131
3232 /**
33- * Trả về thông báo từ MoMo.
33+ * Trả về trạng thái có bị khách hủy đơn hay không do OnePay phản hồi.
34+ *
35+ * @return bool
36+ */
37+ public function isCancelled (): bool
38+ {
39+ return '99 ' === $ this ->getCode ();
40+ }
41+
42+ /**
43+ * Trả về thông báo từ OnePay.
3444 *
3545 * @return null|string
3646 */
You can’t perform that action at this time.
0 commit comments