小程序配置与支付配置(都填写正确,预览二维码方可正常显示)

status==1}checked{/if} >普通商户支付 status==2}checked{/if} >服务商支付
{$m->text('AppId','class="form-control" data-rule-required="true"')}

小程序 -> 设置 -> 开发 里面有 小程序AppID

{$m->text('AppSecret','class="form-control" data-rule-required="true"')}

小程序 -> 设置 -> 开发 里面有 小程序AppSecret

status==1}style="display: none;"{/if}>
{$m->text('sAppId','class="form-control" data-rule-required="true"')}

服务商的AppId

status==1}style="display: none;"{/if}>
{$m->text('PartnerId','class="form-control" data-rule-required="true"')}

微信支付商户平台 -> 账户中心 -> 个人信息 -> 登录账号 就是商户PartnerId

{$m->text('PartnerKey','class="form-control" data-rule-required="true"')}

微信支付商户平台 -> 账户中心 -> API安全 -> 修改API密钥 里面有 商户PartnerKey

status==1}style="display: none;"{/if}>
{$m->text('sPartnerId','class="form-control" data-rule-required="true"')}

由服务商创建

status==1}style="display: none;"{/if}>
{$m->upload('cert_tmp',['type'=>'pem'],'class="form-control"')}

{$payParams['cert']?'已上传':'未上传'}

{$m->upload('key_tmp',['type'=>'pem'],'class="form-control"')}

{$payParams['key']?'已上传':'未上传'}