<?php
 namespace Module\PayCenter\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Layout\AdminConfigBuilder; class ConfigController extends Controller { public function alipay(AdminConfigBuilder $builder) { $builder->pageTitle('支付宝'); $builder->switch('payAlipayOn', '开启支付宝付款'); $builder->text('payAlipayPartnerId', '卖家ID(PartnerId)')->help('如 2085364735263489'); $builder->text('payAlipaySellerId', '卖家ID(SellerId)')->help('如 seller@example.com'); $builder->text('payAlipayKey', '安全Key')->help('如 pdehgmdjeubnghtyddktjm174hdj'); $builder->formClass('wide'); return $builder->perform(); } public function wechat(AdminConfigBuilder $builder) { $builder->pageTitle('微信支付'); $builder->switch('payWechatOn', '开启微信付款'); $builder->text('payWechatAppId', 'AppId')->help('如 需要和微信授权登录AppId相同'); $builder->text('payWechatMerchantId', '商家ID(MerchantId)')->help('长度32位，在微信支付平台中的 账户中心 > API安全 > API密钥 中获取。'); $builder->text('payWechatKey', 'API密钥(Key)')->help('如 136XXXXXXX'); $builder->formClass('wide'); return $builder->perform(); } }