2019-03-28 04:06:59 -06:00
|
|
|
<!--<head>-->
|
|
|
|
|
<!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
|
|
|
|
|
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge" />-->
|
|
|
|
|
<!--</head>-->
|
|
|
|
|
<p>
|
|
|
|
|
<%= url_for("$controller/$action/img") %>
|
|
|
|
|
%= url_for->path('/meself')
|
2018-07-19 03:45:46 -05:00
|
|
|
</p>
|
|
|
|
|
<p>
|
2019-03-28 04:06:59 -06:00
|
|
|
<%= $res %>
|
2018-07-13 19:06:08 -05:00
|
|
|
</p>
|
2019-03-28 04:06:59 -06:00
|
|
|
|
|
|
|
|
<!-- Set up a container element for the button -->
|
|
|
|
|
<div id="paypal-button-container"></div>
|
|
|
|
|
|
|
|
|
|
<!-- Include the PayPal JavaScript SDK -->
|
|
|
|
|
<script src="https://www.paypal.com/sdk/js?client-id=AQdZ1JJL-GNBgGTI3W6cXChmj6MnZsInRGlWeHw1kbGiE_49eTtZ2fPvEq9ersU2y6O5WpxccdsyAQw7¤cy=MXN"></script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
// Render the PayPal button into #paypal-button-container
|
|
|
|
|
paypal.Buttons({
|
|
|
|
|
|
|
|
|
|
// Set up the transaction
|
|
|
|
|
createOrder: function(data, actions) {
|
|
|
|
|
return actions.order.create({
|
|
|
|
|
purchase_units: [{
|
|
|
|
|
amount: {
|
|
|
|
|
value: '1.00'
|
|
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Finalize the transaction
|
|
|
|
|
onApprove: function(data, actions) {
|
|
|
|
|
return actions.order.capture().then(function(details) {
|
|
|
|
|
// Show a success message to the buyer
|
|
|
|
|
alert('Transaction completed by ' + details.payer.name.given_name + '!');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}).render('#paypal-button-container');
|
|
|
|
|
</script>
|
|
|
|
|
|