首页 > 解决方案 > AMP-HTML 页面上的 Paypal 按钮

问题描述

有没有办法在 AMP-HTML 页面中包含 PayPal“购买按钮”?PayPal 按钮需要外部脚本,因此页面不会验证。有解决方法吗?

谢谢

啤酒

标签: paypalamp-html

解决方案


是的,您可以使用 paypal 的 html 按钮不起作用,而“立即付款”按钮图像无法显示

您需要在标题中添加此代码:

body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:- amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to {visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible }}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}body{-webkit-动画:无;-moz-动画:无;-ms-动画:无;动画:无}



您还需要导入 amp-iframe 脚本

您可以在此处查看有关此问题的详细信息: https ://wordpress.stackexchange.com/questions/367201/amp-and-paypal-form-cors-issue?newreg=fc62243f85a2428fb9e0d2f4e6d03233

你可以在这里看到我的代码示例:https ://www.dropbox.com/s/q0qlsab4934es3z/paypal.html?dl=0


推荐阅读