payment library
Payment APIs for the Hylid Bridge.
This library provides payment processing capabilities through Hylid's trade pay system.
Example:
import 'package:flutter_hylid_bridge/payment.dart';
await tradePay(
paymentUrl: 'https://payment-gateway.com/pay?order=123',
success: (TradePayResult result) {
print('Payment successful!');
},
);
Extension Types
- TradePayResult
- Result object returned from trade pay operations.
Functions
-
tradePay(
{String? paymentUrl, void success(TradePayResult result)?, void fail(TradePayResult result)?, void complete(TradePayResult result)?}) → Future< void> - Initiates a payment transaction using Hylid's trade pay system.