贝宝按钮和 CF7 表格
Paypal Button and CF7 Form
我使用的是 Wordpress CF7 表单,使用附加设置在表单提交时重定向到 Paypal 表单。我在那里添加了一个运行良好的功能。同时,使用 CF7 表单中的信息创建了一个新的 post。因此,无论是否支付 Paypal,都会创建 post。
on_sent_ok: 'my_redirect();'
只有在 Paypal 付款后,我才可以添加新的 post。如果付款成功,我可以将表单值传递给 Paypal 然后将它们发回以供提交吗?
<script>
function my_redirect() {
var price = document.getElementById('total').value;
var taxed = document.getElementById('taxed').value;
var revised = (parseInt(price)/100) * parseInt(taxed);
var url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=EMAILHERE&lc=GB&item_name=PRODUCTNAMEHERE&amount='+revised+'¤cy_code=GBP&button_subtype=services&no_note=0&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHostedGuest';
window.location = url;
jQuery("#totals").val(revised);
}
</script>
不太确定从哪里开始使用 Paypal 提供的基本 button/email 解决方案。
感谢您的帮助!
好的我给你步骤
点击 paypal 按钮,用户进入 paypal 网站并付款,paypal returns 用户进入您创建的成功页面。
在该页面中放置该函数来创建您想要的内容。
如果用户不支付则不会创建函数,支付失败也不会创建
希望你明白
我使用的是 Wordpress CF7 表单,使用附加设置在表单提交时重定向到 Paypal 表单。我在那里添加了一个运行良好的功能。同时,使用 CF7 表单中的信息创建了一个新的 post。因此,无论是否支付 Paypal,都会创建 post。
on_sent_ok: 'my_redirect();'
只有在 Paypal 付款后,我才可以添加新的 post。如果付款成功,我可以将表单值传递给 Paypal 然后将它们发回以供提交吗?
<script>
function my_redirect() {
var price = document.getElementById('total').value;
var taxed = document.getElementById('taxed').value;
var revised = (parseInt(price)/100) * parseInt(taxed);
var url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=EMAILHERE&lc=GB&item_name=PRODUCTNAMEHERE&amount='+revised+'¤cy_code=GBP&button_subtype=services&no_note=0&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHostedGuest';
window.location = url;
jQuery("#totals").val(revised);
}
</script>
不太确定从哪里开始使用 Paypal 提供的基本 button/email 解决方案。
感谢您的帮助!
好的我给你步骤
点击 paypal 按钮,用户进入 paypal 网站并付款,paypal returns 用户进入您创建的成功页面。
在该页面中放置该函数来创建您想要的内容。
如果用户不支付则不会创建函数,支付失败也不会创建
希望你明白