-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from notadd/develop
chore(release): publish v0.3.0
- Loading branch information
Showing
16 changed files
with
178 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './pay.addon'; | ||
export * from './modules/wechat'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** 微信支付交易类型 */ | ||
export enum WechatTradeType { | ||
/** JSAPI、小程序支付 */ | ||
JSAPI = 'JSAPI', | ||
/** 扫码支付 */ | ||
NATIVE = 'NATIVE', | ||
/** APP支付 */ | ||
APP = 'APP', | ||
/** H5支付 */ | ||
MWEB = 'MWEB', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export * from './services/app.pay.service'; | ||
export * from './services/applet.pay.service'; | ||
export * from './services/jsapi.pay.service'; | ||
export * from './services/micro.pay.service'; | ||
export * from './services/native.pay.service'; | ||
export * from './services/wap.pay.service'; | ||
export * from './enums/trade-type.enum'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** 微信支付结果通知返回值 */ | ||
export interface WechatPayBaseNotifyRes { | ||
/** 返回状态码 */ | ||
return_code: string; | ||
/** 返回信息 */ | ||
return_msg: string; | ||
/** 业务结果 */ | ||
result_code: string; | ||
/** 错误代码 */ | ||
err_code?: string; | ||
/** 错误代码描述 */ | ||
err_code_des?: string; | ||
/** 公众账号ID/小程序ID/应用ID */ | ||
appid: string; | ||
/** 商户号 */ | ||
mch_id: string; | ||
/** 微信支付订单号 */ | ||
transaction_id: string; | ||
/** 商户订单号 */ | ||
out_trade_no: string; | ||
/** 设备号 */ | ||
device_info?: string; | ||
/** 随机字符串 */ | ||
nonce_str: string; | ||
/** 签名 */ | ||
sign: string; | ||
/** 签名类型 */ | ||
sign_type?: string; | ||
/** 用户标识 */ | ||
openid: string; | ||
/** 是否关注公众账号 */ | ||
is_subscribe: string; | ||
/** 交易类型 */ | ||
trade_type: string; | ||
/** 付款银行 */ | ||
bank_type: string; | ||
/** 订单金额 */ | ||
total_fee: number; | ||
/** 应结订单金额 */ | ||
settlement_total_fee?: number; | ||
/** 货币种类 */ | ||
fee_type?: string; | ||
/** 现金支付金额 */ | ||
cash_fee: number; | ||
/** 现金支付货币类型 */ | ||
cash_fee_type?: string; | ||
/** 总代金券金额 */ | ||
coupon_fee?: number; | ||
/** 代金券使用数量 */ | ||
coupon_count?: number; | ||
/** 商家数据包 */ | ||
attach?: string; | ||
/** 支付完成时间 */ | ||
time_end: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters