payfast 0.0.7
payfast: ^0.0.7 copied to clipboard
A Flutter package to integrate Payfast payments into your app.
0.0.7 #
-
Added
- You can now retrieve the transaction data in the
onPaymentCompletedcallback.
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_textAn optional property that for additional text indataobject (deprecated, useitem_descriptioninstead).
-
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_textAn optional property that for additional text indataobject.merchant_idmerchant_keyname_firstname_lastamountitem_namem_payment_idadditional_text(optional - used for payment details page)
defaultPaymentSummaryIconAn icon to display next to the payment summary item details.itemSummarySectionLeadingWidgetA custom widget to display next to the payment summary item details.paymentSummaryAmountColorSet the total amount text color on the payment summary page
- Updated the payment summary details UI.
0.0.4 #
- Added new properties
-
onPaymentCompletedShapeBorderAn optional property that defines the shape of theonPaymentCompletedwidget's border. -
onPaymentCancelledShapeBorderAn optional property that defines the shape of theonPaymentCancelledwidget's border. -
animatedSwitcherWidgetAn optional property that allows you to pass customizable animation duration and transition builder parameters to override the current animation. This uses theAnimatedSwitcheranimation. -
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.