付款方式无法迅速致电

时间:2019-07-26 12:48:32

标签: objective-c swift payment-gateway

一个新的迅速,致力于支付逃逸 现在我必须将值传递给Paymentmethod,但是,尚不清楚如何校准,我必须在swift中单击按钮内部调用sendmethod。如何在nsboject外部调用方法,从而在swift中传递参数

@protocol avantServiceDelegate <NSObject>
-(void)TransactionResponse:(NSString *)status;
@end
@interface avantService : NSObject{

}
+ (avantService *)sharedController;
-(void)SetData:(NSString *) Merchant_Key :(NSString *)Merchant_ID :(NSString *) SuccessUrl_Key :(NSString *) FailureUrl_Key :(NSString *)ServerUrl_Key;

-(BOOL)Transactiondata:(NSString *)Transaction_Detail :(NSString *)Payment_Details :(NSString*)Card_Detail :(NSString *)Customer_Detail :(NSString *)Bill_data :(NSString *)Ship_details :(NSString *)Item_Detail :(NSString *)Other_Detail :(NSString *)Coin_Detail :(NSString *)Upi_Detail :(NSString *)Imps_Detail;

-(void) showTransactionPageViewController:(UIViewController *)viewController;

@property (nonatomic,retain) id <avantServiceDelegate> delegate;
@end

当对象在内部时我打电话

@interface avantService : NSObject{

- (void)createRequestWithPaymentParam:(PayUModelPaymentParams * _Nonnull)paymentParam forPaymentType:(NSString * _Nonnull)paymentType withCompletionBlock:(void (^ _Nonnull)(NSMutableURLRequest * _Nonnull, NSString * _Nonnull))paramCompletionBlock;
}

 let createRequest = PayUCreateRequest()
    createRequest.createRequest(withPaymentParam: self.paymentParams, forPaymentType: PAYMENT_PG_NET_BANKING) { (request, error) in
}

我在对象内部调用

但是如何调用SetData方法

0 个答案:

没有答案