ZMSuperPay
描述
集成支付
示例
要运行示例项目,先克隆仓库,然后从 Example 目录运行 pod install
。
支付接口使用示例:
[ZMSuperPayment payWithOrder:^(id<ZMSuperPaymentParamProtocol> _Nonnull order) {
order.payType = ZMSuperPaymentTypeAliPay;
order.aliPayOrder = @"订单号";
} completion:^(NSDictionary * _Nonnull info) {
NSLog(@"回调信息--%@",info);
}];
AppDelegate 回调:
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{
return [ZMSuperPayment handleOpenURL:url];
}
需求
安装
ZMSuperPay 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:
pod 'ZMSuperPay'
作者
许可
ZMSuperPay 在 MIT 许可下可用。更多信息请见 LICENSE 文件。