Skip to content

Commit

Permalink
ohos新增自动订阅支付
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvanMo committed Nov 4, 2024
1 parent 48fcd5b commit 16a44fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/src/tobias.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ class Tobias {
/// [universalLink] only supports iOS
Future<Map> pay(String order,
{AliPayEvn evn = AliPayEvn.online,
String? universalLink,
bool isOhosAutoSub = false}) async {
String? universalLink}) async {
return await TobiasPlatform.instance
.pay(order, evn: evn, universalLink: universalLink);
}
Expand Down
3 changes: 1 addition & 2 deletions lib/src/tobias_method_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class MethodChannelTobias extends TobiasPlatform {
@override
Future<Map> pay(String order,
{AliPayEvn evn = AliPayEvn.online,
String? universalLink,
bool isOhosAutoSub = false}) async {
String? universalLink}) async {
return await methodChannel.invokeMethod("pay",
{"order": order, "payEnv": evn.index, "universalLink": universalLink});
}
Expand Down
3 changes: 1 addition & 2 deletions lib/src/tobias_platform_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ abstract class TobiasPlatform extends PlatformInterface {
/// [evn] only supports Android due to native AliPaySDK
Future<Map> pay(String order,
{AliPayEvn evn = AliPayEvn.online,
String? universalLink,
bool isOhosAutoSub = false}) async {
String? universalLink}) async {
throw UnimplementedError('pay() has not been implemented.');
}

Expand Down

0 comments on commit 16a44fa

Please sign in to comment.