cosmocommerce / magento-alipay

Magento Alipay Payment Gateway
https://github.com/cosmocommerce/magento-alipay
59 stars 27 forks source link

Redirect issue after payment success #4

Open grimmlink opened 10 years ago

grimmlink commented 10 years ago

Hi,

I updated the module and now after i successfully pay on alipay, im redirected to the notify page.

I think there is a problem in the order flow: When creating the form for checkout we set parameters like : 'return_url' => $this->getReturnURL(), 'notify_url' => $this->getNotifyURL(),

and

return url is Mage::getUrl('alipay/payment/notify/', array('_secure' => true)); notify url is Mage::getUrl('alipay/payment/notify/', array('_secure' => true));

same

It means the customer will be redirected to a white page displaying "success" He is never redirected to success page.

Could you add a new page for return, which redirect customer to success if status is TRADE SUCCESS ?

sidealice commented 10 years ago

Hi,

Thanks , alipay's callback would first detect if we pass the notify url value to their server. If we have notify url value their system would ignore the return url.

That's why it confused you a lot. But we will make a page for the return url work, make it better and even perfect.

Thanks for your good suggestion and help us find out the missing point.