尝试配置条带网关时出现以下错误:
Symfony\Component\Config\Definition\Exception\InvalidConfigurationException “payum.ga teways.stripe_js”下无法识别的选项“factory, publishable_key, secret_key”
payum网关配置config.yml
如下:
支付:
security:
token_storage:
AppBundle\Entity\PaymentToken: { doctrine: orm }
storages:
AppBundle\Entity\Payment: { doctrine: orm }
gateways:
stripe_js:
factory: stripe_js
publishable_key: my publishable key
secret_key: my secret key
安装成功 composer中需要以下内容
"payum/payum-bundle": "0.*",
"payum/stripe":"0.*",
"payum/jms-payment-bridge": "0.*",
"php-http/guzzle6-adapter": "@stable"
我究竟做错了什么?在我看来,键名和工厂没有被识别为网关 stripe_js 下数组的一部分