connect_ips_flutter library

Classes

CIPSConfig
Configuration class for initiating a payment through Connect IPS (CIPS).
ConnectIps
Manages Connect IPS payment processing, including initiating payments, handling exceptions, and closing the web view.
ConnectIPSPaymentButton
Define a custom payment button widget for ConnectIPS, allowing configuration and optional callbacks.
ConnectIpsRepository
Repository for handling Connect IPS API requests, such as transaction verification and fetching transaction details.
ConnectIPSWebView
A widget for displaying the Connect IPS payment web view.
ConnectivityUtil
A helper class to check internet connection availability.
CustomWidgetBuilder
Class containing all custom builders for ConnectIPSWebView.
ExceptionHttpResponse
The exception for ConnectIPSClient.
FailureHttpResponse
The failure response for ConnectIPSClient.
GlobalPopScope
A wrapper around PopScope widget.
HttpResponse
The response for ConnectIPSClient.
PaymentResult
Represents the result of a payment transaction processed through Connect IPS.
SuccessHttpResponse
The success response for ConnectIPSClient.
VerifyTransactionConfig
Configuration class for verifying Connect IPS transactions.

Enums

PaymentEvent
Enum representing different payment events triggered during Connect IPS usage.

Extensions

EmptyExtension on Object?
Util containing various helper methods to deal with null checks.

Constants

Default connect ips logo in png
kDefaultBaseLoginUrl → const String
Default connect ips base login url
kNoInternetConnection → const String
Text to display when there in network failure
kNoInternetConnectionMessage → const String
message displayed to user on network failure
kPaymentCancelled → const String
Display message when payment is cancelled by user
kPayWithCIPS → const String
payment button label
kTryAgain → const String
try again prompt

Properties

connectivityUtil ConnectivityUtil
Helper getter to retrieve ConnectivityUtil instance.
no setter
repository ConnectIpsRepository
Creating an instance of ConnectIPSRepository to handle network requests.
final

Functions

generateTransactionID([int length = 20]) String
Generates transaction id from random characters of length 20
getSignedToken(String message, FutureOr<String> getSecretKey(), [String? path]) Future<String>
Get the signed token from message using SHA256withRSA algorithm.

Typedefs

ButtonBuilder = Widget Function(BuildContext context, String text)
CanPopCallback = FutureOr<bool> Function()
FutureOr<bool> Function()
ErrorWidgetBuilder = Widget Function(BuildContext context, String message, String description)
Signature for a function that creates error widget shown while transaction. Contains a message and description.
HttpClient = Client
Typedef for the http client used internally.
OnMessage = FutureOr<void> Function(ConnectIps connectIPS, {Object? description, PaymentEvent? event, bool? needsPaymentConfirmation, int? statusCode})
Callback type for handling exceptions that occur during payment processing.
OnPaymentResult = FutureOr<void> Function(PaymentResult paymentResult, ConnectIps connectIps)
Callback type for handling successful or failed payment results.
OnReturn = FutureOr<void> Function([PaymentResult? payment])
Callback for when the user is redirected to the return_url.
PopInvokedCallback = FutureOr<void> Function(bool didPop, Object? result)
FutureOr<void> Function(bool didPop)