测试已测试 | ✓ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
Released最新发布 | Mar 2018 |
由 Maxim Pavlov,Maxim Pavlov 维护。
依赖 | |
AFNetworking/NSURLSession | ~> 3.0 |
AFNetworking/Security | ~> 3.0 |
AFNetworking/Serialization | ~> 3.0 |
用于与 Payler Gate API 一起使用的包装器。有关任何连接问题或获取测试/作战访问权限,请联系我们[email protected]。
PaylerAPIClient *client = [PaylerAPIClient clientWithMerchantKey:@"..." password:@"..."];
PLRPayment *payment = [[PLRPayment alloc] initWithId:@"paymentId" amount:10000];
[client refundPayment:payment completion:^(PLRPayment *payment, NSDictionary *info, NSError *error) {
if (!error) {
NSLog(@"Refund completed");
} else {
NSLog(@"Error: %@", error);
}
}];
下载测试项目以查看更多示例。
Version 2.x PaylerSDK 支持 iOS 7+,对于网络使用 AFNetworking 版本 3.x。此外,还需要 Xcode 7+。
Version 1.x PaylerSDK 支持 iOS 6+,对于网络使用 AFNetworking 版本 2.x。
Максим Павлов,[email protected]
PaylerSDK 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。