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: 7923
Joined: 01 Jan 1970, 00:00

Re: Payment Gateway WechatPay

Post by aimeos » 07 Feb 2022, 16:12

Your config/shop.php is OK. In the latest stack trace, the error originates from:
https://github.com/aimeos/ai-client-htm ... rd.php#L66

But this is only where the error is written to the output, not the exception itself.
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 » 07 Feb 2022, 23:37

Thanks.

I think it blows up here. looking for a file body-standard.blade.php that does not exist.

I am not sure if I should provide that file or that file should not be called for.

Regards,
Attachments
body-standard.blade.php-missing.png
body-standard.blade.php-missing.png (161.3 KiB) Viewed 2265 times

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

Re: Payment Gateway WechatPay

Post by aimeos » 09 Feb 2022, 08:02

The view implementation tests if there's a body-standard.blade.php file available and prefers it over a body-standard.php but that should be not a problem and is also not related to your initially posted error message.
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 » 10 Feb 2022, 02:02

The issue is with wechat credential. Thanks

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

Re: Payment Gateway WechatPay

Post by godadada@yahoo.com » 11 Feb 2022, 06:17

Greetings,

in the method getData

$data['spbill_create_ip'] = $this->getValue( 'client.ipaddress' );

is null.

Anyway to fix it?

Regards,

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

Re: Payment Gateway WechatPay

Post by godadada@yahoo.com » 12 Feb 2022, 08:30

I tried also PaypalPlus and PaypalExpress. The former has the same issue of 'client.ipaddress' to be null and the later is built in and does not call the Omnipay::getData.

Regards,

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

Re: Payment Gateway WechatPay

Post by godadada@yahoo.com » 14 Feb 2022, 01:22

Figured this one out. client.ipaddress needs to be set in the payment configuration.

I still get payment failure though. Trying to find out where the issue is.

Regards,

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

Re: Payment Gateway WechatPay

Post by aimeos » 14 Feb 2022, 07:54

Laravel should return the client IP address here:
https://github.com/aimeos/ai-laravel/bl ... l5.php#L48

If not, then it's something you need to check in the Laravel code.
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 » 05 Mar 2022, 05:15

Sorry, I do not know enough to answer CCavenue question. I am still struggling with WechatPay.

I am able to make some progress, got SUCCESS response from WechatPay gateway (see attached imageJ).

But it still gave error at the end>
Attachments
enderror.png
enderror.png (14.34 KiB) Viewed 2131 times
wechatpayresponse.png
wechatpayresponse.png (40.31 KiB) Viewed 2131 times

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

Re: Payment Gateway WechatPay

Post by godadada@yahoo.com » 05 Mar 2022, 09:02

It seems complaining the frontend::create first parameter '$context' has cache to be null.

Regards,
Attachments
contextcachenull.png
contextcachenull.png (215.68 KiB) Viewed 2130 times

Post Reply