Skip to main content

xmoney 0.0.1 copy "xmoney: ^0.0.1" to clipboard
xmoney: ^0.0.1 copied to clipboard

Flutter SDK for xMoney checkout — Payment Sheet, Payment Element, Apple Pay, and Google Pay.

xMoney Payments — Flutter SDK #

Flutter SDK for xMoney checkout. Three surfaces, one PaymentConfig, one PaymentResult. Card data never crosses the Dart platform channel.

Surface API Use when
Payment Sheet PaymentSheetController Drop-in bottom sheet. SDK owns the UI and the Pay button.
Payment Element PaymentElement Card, saved cards, and wallet in your layout.
Apple Pay ApplePay, ApplePayButton (iOS) Standalone wallet button or present().
Google Pay GooglePay, GooglePayButton (Android) Standalone wallet button or present().

Requirements #

  • Flutter 3.44+
  • Dart 3.10+
  • iOS 15.0+
  • Android minSdk 23

Native SDKs: Android com.xmoney:* 1.0.0, iOS XMoneyPaymentSheet 1.0.1.

Installation #

dependencies:
  xmoney: ^0.0.1
flutter pub get
cd ios && pod install   # iOS only

Put only a publishable publicKey (pk_test_… / pk_live_…) in the app. Create orders on your server. Never ship a secret API key.

Payment Sheet #

import 'package:xmoney/xmoney.dart';

final sheet = PaymentSheetController();

await sheet.init(PaymentConfig(publicKey: 'pk_test_…'));
final result = await sheet.present(intent);

switch (result) {
  case PaymentResultComplete(:final transaction):
    break;
  case PaymentResultFailed(:final error):
    break;
  case PaymentResultCanceled():
    break;
}

Full guide, Element, wallets, and order lifecycle: github.com/xMoney-Payments/xmoney-flutter.

License #

MIT. Security notes: SECURITY.md.

0
likes
0
points
438
downloads

Publisher

verified publisherxmoney.com

Weekly Downloads

Flutter SDK for xMoney checkout — Payment Sheet, Payment Element, Apple Pay, and Google Pay.

Homepage
Repository (GitHub)
View/report issues

Topics

#payments #checkout #apple-pay #google-pay

License

unknown (license)

Dependencies

flutter, xmoney_android, xmoney_ios, xmoney_platform_interface

More

Packages that depend on xmoney

Packages that implement xmoney