paycross_flutter 0.7.4
paycross_flutter: ^0.7.4 copied to clipboard
PayCross payment SDK for Flutter: card payments, 3-D Secure v2, saved cards, Google Pay on Android and Apple Pay on iOS, wrapping the native Android and iOS SDKs.
paycross_flutter #
PayCross checkout for Flutter. One call presents the native PayCross payment UI — card form, 3-D Secure v2 challenge, saved cards, status polling — and returns one result. No card data ever passes through Dart.
Cards on both platforms, Google Pay on Android, and Apple Pay on iOS.
Install #
dependencies:
paycross_flutter: ^0.7.4
Then raise both platform minimums: minSdk = 24 in your app's
android/app/build.gradle.kts, and platform :ios, '16.0' at the top of your
ios/Podfile with the Xcode deployment target to match. Neither default is high
enough, and both fail late — at the manifest merge and at pod resolution —
rather than at pub get. The Flutter guide linked below covers both, and the
Swift Package Manager route.
Quickstart #
await PayCross.configure(environment: PayCrossEnvironment.sandbox);
final result = await PayCross.presentPayment(sessionToken);
switch (result) {
case PayCrossSuccess(:final transactionId): // paid; verify server-side
case PayCrossFailure(:final recovery) when recovery.isRetryable: // retryable
case PayCrossFailure(): // declined, terminal
case PayCrossPending(:final transactionId): // unknown; reconcile first
case PayCrossCancelled(:final transactionId): // the shopper dismissed it
}
The example app is this quickstart as a runnable screen.
Documentation #
- Flutter guide — wallets, appearance, languages, saved cards, test identifiers, environments and errors.
- API reference on pub.flutter-io.cn.
- Changelog —
built from this repo's
CHANGELOG.mdat the latest released version. - Support — questions go to support@pay-cross.com.
Contributing and security #
Report a vulnerability the way SECURITY.md describes, never as a
public issue.
License #
MIT. See LICENSE.