-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsert.js
34 lines (31 loc) · 1 KB
/
insert.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*paypal.Buttons({
createOrder: function(data, actions) {
// This function sets up the details of the transaction, including the amount and line item details.
return actions.order.create({
purchase_units: [{
amount: {
value: '0.01'
}
}]
});
}
}).render('#paypal-button-container');
*/
//receiving conformation
paypal.Buttons({
createOrder: function(data, actions) {
// This function sets up the details of the transaction, including the amount and line item details.
return actions.order.create({
purchase_units: [{
amount: {
value: k
}
}]
});
},
onApprove: function(data, actions) {
// This function captures the funds from the transaction.
return window.location.replace("/SWE/success.php?opt="+opt);
}
}).render('#paypal-button-container');
//This function displays Smart Payment Buttons on your web page.