Payment Gateway WechatPay
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: Payment Gateway WechatPay
That's not the problem. You have to find the ksort() call that recevies a NULL value instead of an array.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 56
- Joined: 15 Mar 2021, 01:03
Re: Payment Gateway WechatPay
the Omnipay\WechatPay::getData was called and null return passed to ksort routine. (see attached call stack).
I am not sure if this version of getData is the right one to call.
Regards,
I am not sure if this version of getData is the right one to call.
Regards,
- Attachments
-
- wechatgetdata.png (179.3 KiB) Viewed 1644 times
Re: Payment Gateway WechatPay
Is the XML string invalid so "Helper::xml2array()" returns NULL?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 56
- Joined: 15 Mar 2021, 01:03
Re: Payment Gateway WechatPay
$data = $this->getRequestParams(); returns null, which is the input $data for Helper::xml2array(), then also returning null.
regards,
regards,
- Attachments
-
- xml2aray.png (84.47 KiB) Viewed 1635 times
Re: Payment Gateway WechatPay
Seems like you have to set this parameters first:
https://github.com/lokielse/omnipay-wec ... notify-doc
Unfortunately, this Omnipay driver is far from the standard :-/
https://github.com/lokielse/omnipay-wec ... notify-doc
Unfortunately, this Omnipay driver is far from the standard :-/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 56
- Joined: 15 Mar 2021, 01:03
Re: Payment Gateway WechatPay
much appreciated input.
I have over-ridden the Omnipay::updateSync method, and added one line to obtain 'request_params'. but it complained xml2array failure.
Please enlighten.
Regards,
I have over-ridden the Omnipay::updateSync method, and added one line to obtain 'request_params'. but it complained xml2array failure.
Please enlighten.
Regards,
- Attachments
-
- WeChatPay updateSync.png (191.78 KiB) Viewed 1158 times
-
- xml2aray.png (84.47 KiB) Viewed 1158 times