// // ASCheckoutPayManager.h // Asteria // // Created by xingyu on 2024/5/14. // #import NS_ASSUME_NONNULL_BEGIN //#define WebBase_Server ([NSUserDefaults.standardUserDefaults boolForKey:LastNetState] == true ? @"https://ios.alipearlhair.com/" : @"https://alipearlapp.snjon.com/") #define WebBase_Server @"https://alipearlapp.snjon.com/" #define Chectout_Pay_Paypal_Url BaseRequestrUrl(@"rewrite/paypal/getPaypalToken") #define Chectout_Pay_Klarna_Url BaseRequestrUrl(@"rewrite/klarna/getKlarnaToken") typedef void(^ASPayFinishBlock)(NSString *payMethod, NSUInteger isSucess , id payData); @interface ASCheckoutPayManager : NSObject @property (nonatomic, copy) ASPayFinishBlock payFinishBlock; + (instancetype)sharedInstance; - (void)checkoutPayWithMethodType:(NSString *)payType; - (void)checkoutPayWithMethodType:(NSString *)payType completion:(void (^ __nullable)(NSUInteger isSucess , id payData))completion; @end NS_ASSUME_NONNULL_END