Bez popisu

DataMD5.h 1.0KB

123456789101112131415161718192021222324252627
  1. //
  2. // DataMD5.h
  3. // WeChatDemo
  4. //
  5. // Created by 尹俊雄 on 15/7/2.
  6. // Copyright (c) 2015年 yjx. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface DataMD5 : NSObject
  10. -(instancetype)initWithAppid:(NSString *)appid_key
  11. mch_id:(NSString *)mch_id_key
  12. nonce_str:(NSString *)noce_str_key
  13. partner_id:(NSString *)partner_id
  14. body:(NSString *)body_key
  15. out_trade_no :(NSString *)out_trade_no_key
  16. total_fee:(NSString *)total_fee_key
  17. spbill_create_ip:(NSString *)spbill_create_ip_key
  18. notify_url:(NSString *)notify_url_key
  19. trade_type:(NSString *)trade_type_key;
  20. ///获取MD5签名
  21. - (NSString *)getSignForMD5;
  22. ///创建发起支付时的sige签名
  23. -(NSString *)createMD5SingForPay:(NSString *)appid_key partnerid:(NSString *)partnerid_key prepayid:(NSString *)prepayid_key package:(NSString *)package_key noncestr:(NSString *)noncestr_key timestamp:(UInt32)timestamp_key;
  24. @end