how to write native script? in vue
I am in the component of vue,
<script>
export default {
...
}
</script>
I have my own native < script > code, as follows:
<script>
gtel.Button.render({
env: "sandbox", // sandbox | production
...{
return paypal.request.post(CREATE_URL)
.then(function(res) {
return res.paymentID;
});
},
</script>
how can I do this and put my < script > into the component?