portone_flutter_v2 1.0.3 copy "portone_flutter_v2: ^1.0.3" to clipboard
portone_flutter_v2: ^1.0.3 copied to clipboard

A module for integrating PortOne V2 payment service in Flutter App.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.3 - 2025-04-26 #

Added #

  • Added pg field to the PaymentRequest model, accepting a PGCompany enum to specify the payment gateway.
  • Updated the PaymentRequest.fromJson factory method to handle the new pg field.
  • Added PGCompany enum to represent supported PG companies.
  • Added conditional logic to include the retAppScheme parameter when using the Tosspayments PG for redirect handling.

Changed #

  • Introduced validation in the PaymentRequest constructor to ensure the selected payMethod is supported by the specified PGCompany.
  • Throws an ArgumentError when an unsupported payMethod is provided, with a clear error message listing the supported methods.
  • Added unit tests verifying that an ArgumentError is thrown for unsupported payMethod cases and that object creation succeeds for supported cases.
  • Removed includeToJson: false annotation from the pg field in the PaymentRequest model. (If still present, please remove.)

1.0.2 - 2025-04-25 #

Added #

  • Added unit tests for most of model classes

Changed #

  • Exposes the PortonePaymentState class as public and adds comprehensive documentation to facilitate testing and improve understanding of the payment process.
  • Sets a default redirectUrl in the paymentData if it is null.
  • Adds retAppScheme to the paymentData for compatibility with Tosspayments' TossPay, as it requires this parameter.

1.0.1 - 2025-04-12 #

Added #

  • Added PaymentCurrency enum with support for a wide range of currencies based on ISO 4217.
  • Added Missing documentation for all public members to improve code readability and maintainability.

Changed #

  • Translated the CHANGELOG from Korean to English.
  • Converted enum values in CashReceiptTradeOption to snake case for consistency.

1.0.0 - 2025-04-11 #

Added #

  • Initial integration of PortOne V2 payment service
  • Implementation of payment process using the PortonePayment widget
  • Support for multiple payment methods (credit card, virtual account, easy-pay, etc.)
  • Implementation of payment request model (PaymentRequest) and payment response model (PaymentResponse)
  • Added PGCompany enumeration to support various PG companies
  • Added PaymentSupportedMethods extension for checking supported payment methods per PG company
  • Functionality for handling payment callbacks via app schemes
  • Option to configure payment window type (iframe, popup)
  • Multilingual support (Korean, English)
  • Localization support for PG company names
  • Support for multiple currencies (according to the ISO 4217 standard)
  • Support for country information (according to the ISO 3166-1 alpha-2 standard)
  • Added bypass parameter support for each PG company:
    • e.g., KakaoPay, Toss Payments, Toss Pay V2, KSNET, Smartro V2, Naver Pay, etc.
  • Support for transmitting additional information such as custom data, store information, and shipping address
  • Error handling and logging functionality

Changed #

  • Renamed class from PortOnePayment to PortonePayment for consistency

Fixed #

  • Improved handling of intent URL processing
  • Improved payment response processing via app scheme
  • Modified field type in PaymentRequest model (changed isEscrow to nullable)
  • Changed paypal to convenienceStore in the PaymentPayMethod enumeration
4
likes
0
points
196
downloads

Publisher

verified publishercami.kr

Weekly Downloads

A module for integrating PortOne V2 payment service in Flutter App.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

app_links, flutter, flutter_inappwebview, json_annotation, url_launcher

More

Packages that depend on portone_flutter_v2