酷店

AlibcAlipayBridge.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * AlibcAlipayBridge.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeBiz
  6. * 版本号:3.1.1.96
  7. * 发布时间:2017-03-24
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1229144682(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import "UIKit/UIKit.h"
  14. #ifndef AlibcAlipayBridge_h
  15. #define AlibcAlipayBridge_h
  16. /** 支付结果 */
  17. @interface AlibcTradePayResult : NSObject
  18. /** 支付成功订单 */
  19. @property(nonatomic, copy, nullable, readonly) NSArray *paySuccessOrders;
  20. /** 支付失败订单 */
  21. @property(nonatomic, copy, nullable, readonly) NSArray *payFailedOrders;
  22. @end
  23. @interface AlibcAlipayBridge : NSObject
  24. @property(nonatomic, copy, nullable) NSArray<NSString *> *orderIds;
  25. + (nonnull instancetype)sharedInstance;
  26. + (BOOL)isAlipayAvaleable;
  27. + (BOOL)isPaymentSuccess:(nullable NSDictionary *)payment;
  28. /** 支付订单 */
  29. - (void)payOrder:(nonnull NSString *)order scheme:(nonnull NSString *)scheme callback:(nullable void (^)(NSDictionary *__nullable result))callback;
  30. /** 支付结果 */
  31. - (void)receiptURL:(nullable NSURL *)url callback:(nullable void (^)(NSDictionary *__nullable result))callback;
  32. /** 解析支付结果 */
  33. - (void)processPayment:(NSDictionary *__nullable)payment callback:(nullable void (^)(AlibcTradePayResult *__nullable result, NSError *__nullable error))callback;
  34. @end
  35. #endif //AlibcAlipayBridge_h