VnPaymentApi class
Properties
-
banks
→ List<Bank>?
-
Returns the cached list of banks or null if not fetched yet
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findBankByBin(String bin)
→ Bank?
-
Tìm ngân hàng theo BIN
-
findBankByCode(String code)
→ Bank?
-
Tìm ngân hàng theo mã code
-
generateQrUrl({required String bankId, required String accountNo, String template = 'compact', int? amount, String? addInfo, String? accountName})
→ String
-
Tạo URL QR cho ngân hàng và số tài khoản
-
generateQrUrlFromBankCode({required String bankCode, required String accountNo, String template = 'compact', int? amount, String? addInfo, String? accountName})
→ String
-
Tạo URL QR cho ngân hàng dựa trên BIN
-
getBanks({bool forceRefresh = false})
→ Future<ApiResponse<List<Bank>>>
-
Fetches the list of banks from the API
Returns ApiResponse with list of banks on success
-
getBusinessByTaxCode(String taxCode)
→ Future<ApiResponse<Business?>>
-
Tra cứu thông tin doanh nghiệp theo mã số thuế
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Properties
-
instance
→ VnPaymentApi
-
Get the singleton instance of VnPaymentApi
Throws an exception if not initialized
no setter