Closed michael2h4ng closed 8 years ago
Wouldn't submitting a PR to Alipay repo be a better option by creating alias functions? Just an idea?
Not sure about this... since Alipay
uses underscore heavily.
@lokielse What do you think?
'alipay_express' => [
'driver' => 'Alipay_Express',
'options' => [
'partner' => 'xxxx',
'key' => 'xxxxx',
'sellerEmail' => 'xxxx@xx.com',
'signType' => 'MD5',
'caCertPath' => 'xxx',
'returnUrl' => 'xxx',
'notifyUrl' => 'xxxx',
]
],//
You should use camel case like sellerEmail
in config file.
@lokielse Gotcha. Thanks.
Gateway
Alipay
adopts underscore naming convention, and requires options likeseller_email
andreturn_url
. Using onlyucfirst()
in the reflection function is not adequate, as it translatesseller_email
togetSeller_email
, rather thangetSellerEmail
. This PR securely translates underscores into camel case.