【发布时间】:2021-12-16 22:42:46
【问题描述】:
在这里收客户的钱
https://www.paypal.com/buttons/smart
可以复制一个有onApprove函数的代码
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
//const element = document.getElementById('paypal-button-container');
//element.innerHTML = '';
//element.innerHTML = '<h3>{{__("Thank you for your payment!")}}</h3>';
// Or go to another URL: actions.redirect('http://www.myservices.com/oneserviceBought?id=2323');//for example
});
如何提高安全性,让某人(网络攻击者)无法窃取服务 - 而不是支付投掷 PP,而是在他/她的浏览器上复制 url http://www.myservices.com/oneserviceBought?id=2323?
【问题讨论】:
标签: paypal