Payment Gateway WechatPay

Help for integrating the Laravel package
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!
User avatar
aimeos
Administrator
Posts: 7922
Joined: 01 Jan 1970, 00:00

Re: Payment Gateway WechatPay

Post by aimeos » 06 Mar 2022, 14:26

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, Image give us a star

godadada@yahoo.com
Posts: 56
Joined: 15 Mar 2021, 01:03

Re: Payment Gateway WechatPay

Post by godadada@yahoo.com » 08 Mar 2022, 04:19

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,
Attachments
wechatgetdata.png
wechatgetdata.png (179.3 KiB) Viewed 1580 times

User avatar
aimeos
Administrator
Posts: 7922
Joined: 01 Jan 1970, 00:00

Re: Payment Gateway WechatPay

Post by aimeos » 08 Mar 2022, 06:53

Is the XML string invalid so "Helper::xml2array()" returns NULL?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

godadada@yahoo.com
Posts: 56
Joined: 15 Mar 2021, 01:03

Re: Payment Gateway WechatPay

Post by godadada@yahoo.com » 09 Mar 2022, 00:40

$data = $this->getRequestParams(); returns null, which is the input $data for Helper::xml2array(), then also returning null.

regards,
Attachments
xml2aray.png
xml2aray.png (84.47 KiB) Viewed 1571 times

User avatar
aimeos
Administrator
Posts: 7922
Joined: 01 Jan 1970, 00:00

Re: Payment Gateway WechatPay

Post by aimeos » 11 Mar 2022, 07:13

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 :-/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

godadada@yahoo.com
Posts: 56
Joined: 15 Mar 2021, 01:03

Re: Payment Gateway WechatPay

Post by godadada@yahoo.com » 12 Mar 2022, 00:50

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,
Attachments
WeChatPay updateSync.png
WeChatPay updateSync.png (191.78 KiB) Viewed 1094 times
xml2aray.png
xml2aray.png (84.47 KiB) Viewed 1094 times

Post Reply