在fecshop/common/config/fecshop_local_services/Payment.php增加了两个支付方式,但是在
checkout/onepage/payment?order_increment_id=1 页面没有新的支付方式可供选择,请问需要哪些配置
return [
'payment' => [
/**
* 不需要释放库存的支付方式。譬如货到付款,在系统中
* pending订单,如果一段时间未付款,会释放产品库存,但是货到付款类型的订单不会释放,
* 如果需要释放产品库存,客服在后台取消订单即可释放产品库存。
*/
'noRelasePaymentMethod' => ['check_money'],
'paymentConfig' => [ // 支付方式配置
'standard' => [ // 标准支付类型:在购物车页面进入下单页面,填写支付信息,然后跳转到第三方支付网站的支付类型。
'check_money' => [ // 货到付款类型。
'label' => '现金(Check/Money Order)',
//'image' => ['images/mastercard.png','common'] ,# 支付页面显示的图片。
'supplement' => 'Off-line Money Payments', // 补充信息
'style' => '<style>请联系客户付款</style>', // 补充css,您可以在这里填写一些css
'start_url' => '@homeUrl/payment/checkmoney/start', // 点击按钮后,跳转的url,在这个url里面写支付跳转前的提交信息。
'success_redirect_url' => '@homeUrl/payment/success', // 在支付平台支付成功后,返回的页面
],
'collect' => [ // 到付。
'label' => '到店自提付款',
//'image' => ['images/mastercard.png','common'] ,# 支付页面显示的图片。
'supplement' => 'Off-line Money Payments', // 补充信息
'style' => '<style>请联系客户付款</style>', // 补充css,您可以在这里填写一些css
'start_url' => '@homeUrl/payment/checkmoney/start', // 点击按钮后,跳转的url,在这个url里面写支付跳转前的提交信息。
'success_redirect_url' => '@homeUrl/payment/success', // 在支付平台支付成功后,返回的页面
],
'cash_on_delivery' => [ // 货到付款类型。
'label' => '货到付款',
//'image' => ['images/mastercard.png','common'] ,# 支付页面显示的图片。
'supplement' => 'Ocash_on_delivery', // 补充信息
'style' => '<style>请联系客户付款</style>', // 补充css,您可以在这里填写一些css
'start_url' => '@homeUrl/payment/checkmoney/start', // 点击按钮后,跳转的url,在这个url里面写支付跳转前的提交信息。
'success_redirect_url' => '@homeUrl/payment/success',
],