AliPay for Hikashop

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #45997

Hello,

this is the outgoing port number 80.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #46042

Waiting for the hosting company support reply. Will get you updated asap.

Update:

Just got this reply:


"Port 80 in/out TCP is already allowed in the firewall. Are you sure it isn't an issue with your IP not being white-listed by the payment processor?"

Last edit: 12 years 6 months ago by seoweb.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #46357

Hello,

Can you please test the new release and :

1. activate the debug mode in the configuration of your alipay plugin.
2. do a simple test of purshase.
3. and then send me screenshots of your logs (Hikashop -> Configuration -> Files -> see the report).

Regards,
Mohamed thelji.

Attachments:
Last edit: 12 years 6 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #46423

Hello,

Have done like you said. Here is the result:

The whole purchasing procedure went fine, but I am getting the error message via the email:

A Alipay notification was refused because the connection to the confirmation server failed.

and
The log file is empty
when I am trying to see the report (Hikashop -> Configuration -> Files -> see the report). The CMOD for the file is 0644, so it if writable.

Hope this helps a bit.

Regards,
SeoWeb

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #46464

Hello,

Thanks you for your test, the problem come from the second connexion to the Alipay server. I'll try to fix it.

/


UPDATE
\

I maybe figured what the problem was so can you test it for me please ?

Attachments:
Last edit: 12 years 6 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #46492

Sorry, same as above.

A Alipay notification was refused because the connection to the confirmation server failed.

and

The log file is empty

Let me double check something with AliPay. May be some settingsw should be changed there. Will let you know

Last edit: 12 years 6 months ago by seoweb.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #47844

Hello,

I made few changes to the Alipay's plugin, can you test it and tell me if it works ?
if not, test it with the debug mode and tell me if you have something in your log.

Thanks.

Attachments:
Last edit: 12 years 6 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #47999

Hello,

We have some progress I think! Still some errors but it works more or less.

So after I have completed the payment I have got two emails:

1. An Alipay notification was refused because the response from the Alipay server was invalid

2. A Alipay notification was refused because the amount received () is different from the order amount (0.01CNY)

The order Status is 'None', we think because of the 'Invalid status' default settings of Plugin.

The Log File Content has been PMed to you.

Regards,
SeoWeb

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #48018

The "[trade_status] => WAIT_BUYER_PAY" means that the order is created but Alipay is waiting for the buyer payment. Don't you have a back-end in Alipay that allow you to check all of the created orders ?

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #48042

Yes I do have the back-end access. After I login I can see the Status of the order is set to 'Waiting for the Dispatch'. When I as a seller change it manually to 'Shipped' AliPay, I think, should trigger my website saying that the product has been sent to the customer, so there shoud be a part of the code responsible for listening to AliPays server. Once the customer recives the product, he has to login to the AliPay and click 'Item Received' to complete the whole process. Again I think AliPay will send another trigger to the website saying the deal has been finished.

Only after all steps mentioned above money are going to be transferred to seller's account. Alipay is totally different from PayPal.

Hope this makes sense.

SeoWeb

Last edit: 12 years 6 months ago by seoweb.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #48102

Hello,

I think that you can set your Alipay account so that you don't have to manually change the orders statuts to "Shipped" in Alipay.
So can you please :
- try to change your alipay configuration
- translate your configuration page with your browser
- send me a screenshots of your configuration with confidential's fields hidden
- change the line 254 in alipay.php :

if((preg_match('/true$/i', $response) && $sign == $_POST['sign']) || $_POST['trade_status'] == 'TRADE_FINISHED' || $_POST['trade_status'] == 'TRADE_SUCCESS' || $_POST['trade_status'] == 'WAIT_SELLER_SEND_GOODS') {
By this line :
if((preg_match('/true$/i', $response) && $sign == $_POST['sign']) || $_POST['trade_status'] == 'TRADE_FINISHED' || $_POST['trade_status'] == 'TRADE_SUCCESS' || $_POST['trade_status'] == 'WAIT_SELLER_SEND_GOODS' || $_POST['trade_status']== 'WAIT_BUYER_PAY') {

- and test it again.

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #48160

Hello,

- There is no way we can set AliPay to change the status to Shipped automatically for us.
- There is no any setings really (Strange!)
- Since I have replased the line in alipay.php file with the one you have provided, I am only getting one error message instead of two:

The one I am getting is: "A Alipay notification was refused because the amount received () is different from the order amount (0.01CNY)"

and

The "An Alipay notification was refused because the response from the Alipay server was invalid" does not arrive via email any more.

Do you think this error might be because the "amount received" is actually empty: "()" , there is nothing there? Also the actual order_full_price is 0.01000 and not 0.01

Hope this helps a bit.

Last edit: 12 years 6 months ago by seoweb.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #48167

Hello,

I think that this error came from the fact that alipay don't return the price, so the plugin is comparing '(nothing)' with '(0.01CNY)'.
I made a few change, can you test it please ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #48170

It works now! When I complete the payment the status of the order is being set to 'Confirmed' :-) in Hikashop. Well done, Mohamed!

It looks like we need to work on statuses now. When I will change the status of the Order to Shipped in Hikashop, it should trigger Alipay to make appropriate changes as well.

Regards,
SeoWeb

Last edit: 12 years 6 months ago by seoweb.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #48175

Ok good ! I will check the documentation and let you know if we can do it.

/


UPDATE
\

Hello,
I made few changes so can you test it please.

Attachments:
Last edit: 12 years 6 months ago by Mohamed Thelji.
The following user(s) said Thank You: seoweb

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #48244

I am getting an error 'ILLEGAL_PARTNER_EXTERFACE' once redirected to Alipay website to make payment

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #48248

Ok, can you also test it please ?

/


UPDATE
\

Are you using HTTP or HTTPS ?

Attachments:
Last edit: 12 years 6 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #48250

Same Error. We use HTTP.

Last edit: 12 years 6 months ago by seoweb.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 6 months ago #48255

Can you read this post and tell me if you can do something in you Alipay back-end about the "alipay direct pay method" ?

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 1
12 years 6 months ago #48295

No, we can not use this method. It is not allowed for us at the moment, may be we will be able to apply for it in the future

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum