1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
react-native-alipay/index.d.ts

59 lines
1.6 KiB
TypeScript
Raw Normal View History

2020-07-07 20:10:43 +08:00
/**
*
* , https://docs.open.alipay.com/204/105301
*/
export interface AliOrderResult {
2020-07-07 20:57:23 +08:00
/**
* 64 70501111111S001111119
*/
out_trade_no: string;
/**
* 6464 2014112400001000340011111118
*/
trade_no: string;
/**
* 32Id 2014072300007148
*/
app_id: string;
/**
* 9 RMB-Yuan[0.01,100000000.00] 9.00
*/
total_amount: number;
/**
* 16208816 20886894
*/
seller_id: string;
/**
* 16code返回结果的描述 success
*/
msg: string;
/**
* 16 utf-8
*/
charset: string;
/**
* 32 2016-10-11 17:43:36
*/
timestamp: string;
/**
* 16
*/
code: string;
2020-07-07 20:10:43 +08:00
}
export const Alipay: {
/**
* @param payInfo
* @param result
*/
alipay: (payInfo: string, callback?: (result: AliOrderResult) => void) => void;
/**
* Scheme iOS
* @param scheme scheme = `ap` + `APPID`
*/
setAlipayScheme: (scheme: string) => void;
};
export default Alipay;