flutter_wing_checkout library
Flutter checkout for Wing Bank online payment. Re-exports dart_wing,
so one import gives both the widgets and the API client.
Classes
- CancelToken
-
Controls cancellation of
Dio's requests. - InAppWebViewController
- WingAuthorizationResponse
- Response of the authorization API.
- WingCheckoutResult
- The redirect that ended a checkout.
- WingCheckoutView
- Wing's payment page in a web view. It reports how the checkout ended as soon as Wing redirects to returnUrl or cancelUrl, without loading them.
- WingCrypto
-
Encryption and hashing matching PHP's
openssl_encrypt($data, 'AES-256-CBC', $key, 0, $iv), the function of the PHP sample in Wing's Web SDK spec: the key is the UTF-8 password, NUL-padded or truncated to 32 bytes; the IV is 16 bytes; PKCS#7 padding; base64 output. - WingInquiryResponse
- Response of the transaction inquiry API.
- WingMerchant
- Partner credentials provided by Wing Bank.
- WingPayment
-
Payment to authorize.
rand_strandtimestampare generated by the SDK; every optional field is sent only when set. - WingRequestBuilder
- Builds the encrypted and hashed request bodies of the Wing online payment APIs.
- WingService
- Wing Bank online payment (Web SDK v2) client.
- WingStatus
-
errorCodeanderrorTextof Wing responses. Success is200. - WingTransaction
- A Wing payment, as returned by the inquiry API and pushed to your callback URL.
Enums
- WingCheckoutStatus
- How a checkout on Wing's payment page ended.
- WingErrorType
- What went wrong in a WingException.
- WingIntegrationType
-
Where Wing sends the payer after paying (
integration_type).
Typedefs
- WingClock = DateTime Function()
-
returns the current time; injectable so
timestampcan be tested - WingLogger = void Function(String message)
- receives request/response log lines
- WingRandom = String Function()
-
returns a fresh
rand_str: 16 characters among0-9anda-f
Exceptions / Errors
- WingException
-
Thrown when Wing could not be reached or did not answer with an
errorCode, and for invalid local input such as a short password.