PayPal - encrypt muti item custom cart dynamic checkout button with php

a 夏天 提交于 2019-12-01 10:57:25

right, i've solved it. In the EncryptedButtons class change

$this->_data = "cmd=_xclick\n"; 

to

$this->_data = "cmd=_cart\n"; 

and add

$this->_data .= "upload=1\n";

Remember the . before the = on the last line otherwise it will lead to errors. Hope this helps someone. Once this project is finished I will be writing up a blog post and will add a link when I get it done.

Volomike

Not everyone has the power to install OpenSSL on their hosting plan, or to get it working with all these steps and hoops to jump through. Another solution is tamper detection with an unencrypted button. I explain this here:

How do I make a PayPal encrypted buy now button with custom fields?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!