Payment Web API

Implementation with iOS App SDK

Support for iOS 9 or above

Add OTTPaySDK.framework into your Project

Add $(PROJECT_DIR)/OTTPaySDK.framework/Headers in Build Settings

Register sdk in AppDelegate to set URL Types

Note: shopID is optional for future usage
Registration in AppDelegate implements to listen for payment callbacks
#ifdef IOS9
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options{
[OTTPaySDK application:application handleOpenURL:url];
return YES;
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString
*)sourceApplication annotation:(id)annotation{
[OTTPaySDK application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
return YES;

Call OTTPAY payment API

1. All the monetary measurement unit in API is CENT. For example, one dollar will be expressed as 100, when it is passed into API.
2. The AlipaySDK is connected to the sdk. If you need to use the AlipaySDK interface, you can use it directly without having to import it repeatedly.
3. Error message with error code:
code msg
9000 订单支付成功
8000 正在处理中
4000 订单支付失败
6001 用户中途取消
6002 网络连接出错
Here is the sdk for iOS App for download