Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请添加 「退款方式」 参数 #509

Closed
uicosp opened this issue Sep 26, 2016 · 0 comments
Closed

请添加 「退款方式」 参数 #509

uicosp opened this issue Sep 26, 2016 · 0 comments

Comments

@uicosp
Copy link

uicosp commented Sep 26, 2016

问题描述:微信退款时有一个可选的 refund_account 参数,用于指定从哪个账户上退款。

REFUND_SOURCE_RECHARGE_FUNDS---可用余额退款/基本账户
REFUND_SOURCE_UNSETTLED_FUNDS---未结算资金退款(默认使用未结算资金退款)

可以考虑给 refund 方法添加一个 $refundAccount 参数。
File: Payment/API.php
Line: 187

public function refund(
    $orderNo,
    $refundNo,
    $totalFee,
    $refundFee = null,
    $refundAccount = 'REFUND_SOURCE_UNSETTLED_FUNDS', // 此处添加退款方式参数
    $opUserId = null,
    $type = self::OUT_TRADE_NO
)
@uicosp uicosp closed this as completed Sep 26, 2016
@uicosp uicosp reopened this Sep 26, 2016
overtrue added a commit to EasyWeChat/docs that referenced this issue Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant