import 'google_pay_verification_payload.dart'; /// 未核销(未确认)的谷歌支付订单。 /// 通过 [GooglePlayPurchaseService.getUnacknowledgedPurchases] 查询得到, /// 可用于补发回调或本地展示。上报服务端时 federation 可用 [orderId](若服务端支持)或先 createPayment 再回调。 class UnacknowledgedGooglePayPurchase { const UnacknowledgedGooglePayPurchase({ required this.orderId, required this.productId, required this.payload, }); /// Google Play 订单号(purchase 内 orderId) final String orderId; /// 商品 ID(productId) final String productId; /// 凭据,用于 POST /v1/payment/googlepay 的 sample/merchant;federation/asset 由调用方填入。 final GooglePayVerificationPayload payload; }