[英]How to send data from one flutter app to another flutter app
[英]How can I pass data from one app to another app in flutter?
我正在開發一個應用程序,其中支付自動化是一種功能。 需要的是我的應用程序需要填寫帳戶詳細信息,因此無需手動輸入。 我知道我可以使用 url_launcher package 打開應用程序,但我不知道如何傳遞數據? 以及如何使用所選應用程序的不同文本字段來處理 map 數據。
我將在這里考慮任何啟用 UPI 的支付應用程序,並且您希望傳遞諸如接收者姓名、UPI ID、總金額和交易單等數據。
Future<UpiResponse> initiateTransaction(UpiApp app) async {
return _upiIndia.startTransaction(
app: app,
receiverUpiId: "9078600498@ybl",
receiverName: 'Md Azharuddin',
transactionRefId: 'TestingUpiIndiaPlugin',
transactionNote: 'Not actual. Just an example.',
amount: 1.00,
);
}
您可以使用upi_india ,但這不僅限於 upi_india。 您還有其他軟件包,例如stripe和flutter pay ,它們也具有類似的功能
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.