I've developed a brain-tree payment integration plugin that loads at runtime. I generated the client token in a C# server-side class, but I'm struggling to use it in my Angular controller. Is there a way to access my session variable or something similar in my Angular controller from the C# class? This would allow me to create a drop-in UI in the Angular ready function. I aim to achieve something along these lines:
angular.element(document).ready(function () {
var clientToken = "From_Server_Side";
braintree.setup(clientToken , 'dropin', {
container: 'dropin-container',
paypal: {
singleUse: true,
amount: 10.00,
currency: 'GBP'
}
});
});