本文主要讲解通过JQuery Mobile制作一个支付页面,支持支付宝支付。贡献出HTML页面,动态PHP程序就不讲了,支付宝支付的文章之前讲过的。 见文章:PHP集成 支付宝 快速实现充值功能 我们将通过准备一个jQuery Mobile的HTML页面的页面,其中包括jQuery框架和
本文主要讲解通过JQuery Mobile制作一个支付页面,支持支付宝支付。贡献出HTML页面,动态PHP程序就不讲了,支付宝支付的文章之前讲过的。
见文章:PHP集成支付宝快速实现充值功能
我们将通过准备一个jQuery Mobile的HTML页面的页面,其中包括jQuery框架和样式表。
请看下面页面的源代码:
- 支付页面
http://blog.lixiphp.com/demo/JQmobile/buy.html - 支付成功跳转页面
http://blog.lixiphp.com/demo/JQmobile/return_success.html - 支付失败跳转页面
http://blog.lixiphp.com/demo/JQmobile/return_failed.html
演示
点击确定支付按钮后,通过PHP计算出Alipay的URL或者POST到支付宝,接下来就是支付宝手机、平板电脑支付页面。
注意:支付宝的回调处理通过PHP实现,此处省略100个字。
如果你在支付页面时,表单提示Error Loading Page错误,请看以下的解决方法。
JQuery Mobile Form Error Loading Page
当用户在支付页面提交表单后,会跳转到支付宝(Alipay)支付界面,由于链接跳转到其他域名,导致表单提示Error Loading Page。
(...)
Read the rest of JQuery Mobile支付宝手机支付网页 (10 words)
© lixiphp for LixiPHP, 2013. |
Permalink |
No comment |
Add to
del.icio.us
Post tags: alipay, JQuery, JQuery Mobile, PHP, 手机支付, 支付宝
Feed enhanced by Better Feed from Ozh

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)
