In property HTML of Unithmlframe j write:
<script>
paypal.Buttons({
style: {
shape: 'rect',
color: 'white',
layout: 'horizontal',
label: 'buynow',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '1'
}
}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
alert('Transaction completed by ' + details.payer.name.given_name + '!');
});
}
}).render('#paypal-button-container');
</script>
the button of paypal run ok
how j can read the 'details' of function actions.order.capture or j can read a value from unigui?
thank'