payfast 1.0.1
payfast: ^1.0.1 copied to clipboard
A Flutter package to integrate Payfast payments into your app.
1.0.0 #
Updated #
- Dart SDK updated to
3.8.1
to support latest language improvements and toolchain stability. - Flutter SDK updated to
3.32.8
. - Updated package dependencies in
pubspec.yaml
to latest compatible versions
Added #
onError
callback for handling Payfast-related errors:
Example Usage
PayFast(
...
onError: (errorMessage) {
print('Payfast Error: $errorMessage');
},
);
0.0.8 #
-
Added
- You can now retrieve the transaction data in the
onPaymentCompleted
callback.
Example #
PayFast( ... onPaymentCompleted: (data) { // payment completed // data holds the transaction details including the payment uuid }, )
Or
void paymentCompleted(Map<String, dynamic> data) { // payment completed print(data); } PayFast( ... onPaymentCompleted: paymentCompleted, )
- You can now retrieve the transaction data in the
Improved #
- Enhanced error handling for improved stability and clearer error messages.
0.0.6 #
-
DEPRECATIONS
additional_text
An optional property that for additional text indata
object (deprecated, useitem_description
instead).
-
Added
-
Payment Flow Customization Introduced new parameters for localized/custom payment status screen content:
-
paymentCancelledButtonText
: Customize the button text on payment cancellation screens Default: "Continue" -
paymentCancelledTitle
: Set a custom title for payment cancellation screens -
paymentCompletedButtonText
: Override the completion screen button text Default: "Continue" -
paymentCompletedTitle
: Define a custom title for successful payment screens
-
-
0.0.5 #
- Added new properties
additional_text
An optional property that for additional text indata
object.merchant_id
merchant_key
name_first
name_last
amount
item_name
m_payment_id
additional_text
(optional - used for payment details page)
defaultPaymentSummaryIcon
An icon to display next to the payment summary item details.itemSummarySectionLeadingWidget
A custom widget to display next to the payment summary item details.paymentSummaryAmountColor
Set the total amount text color on the payment summary page
- Updated the payment summary details UI.
0.0.4 #
- Added new properties
-
onPaymentCompletedShapeBorder
An optional property that defines the shape of theonPaymentCompleted
widget's border. -
onPaymentCancelledShapeBorder
An optional property that defines the shape of theonPaymentCancelled
widget's border. -
animatedSwitcherWidget
An optional property that allows you to pass customizable animation duration and transition builder parameters to override the current animation. This uses theAnimatedSwitcher
animation. -
backgroundColor The background color for the payment summary widget widget.
-
- Added FlutterFlow integration Widget & demonstration
- Added animation and transition effects for enhanced UI interactions.
0.0.3 #
- Updated README
- Added onsiteActivationScriptUrl Github links to use for development/testing
0.0.2 #
- Specified platforms in pubspec file, pub dev failing to identify the platforms
0.0.1 #
Features #
- Supports Sandbox and Live Environment: Configure whether to use Payfast's sandbox or live server.
- Customizable Payment Button: Provides a customizable payment button for users to initiate the payment.
- Payment Summary: Displays the payment summary widget before the user proceeds to payment.
- Callbacks for Payment Status: Customizable callback functions for when the payment is completed or cancelled.
- Customization: Fully customizable widgets for the payment flow, including custom widgets for payment cancellation and completion.