【发布时间】:2017-05-10 08:44:41
【问题描述】:
paypal.Button.render({
env: 'sandbox', // Or 'sandbox',
commit: true, // Show a 'Pay Now' button
payment: function() {
// Set up the payment here
},
onAuthorize: function(data, actions) {
// Execute the payment here
}
}, '#paypal-button');
如何在angular 2组件中实现上述代码,并通过在div中添加paypal按钮在组件html文件中调用该函数
<div id="paypal-button"></div>
【问题讨论】:
标签: angular typescript button paypal