Enable Tickets (2025)
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function physicalTicket() {
|
||||
function hmbPhysicalTicket() {
|
||||
paypal.Buttons({
|
||||
style: {
|
||||
shape: 'pill',
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
createOrder: function(data, actions) {
|
||||
return actions.order.create({
|
||||
purchase_units: [{"description":"HMS Physical Track (2024)","amount":{"currency_code":"USD","value":249}}],
|
||||
purchase_units: [{"description":"HMB Physical Track (2025)","amount":{"currency_code":"USD","value":199}}],
|
||||
application_context: { shipping_preference: 'NO_SHIPPING'}
|
||||
});
|
||||
},
|
||||
@@ -167,10 +167,10 @@
|
||||
onError: function(err) {
|
||||
console.log(err);
|
||||
}
|
||||
}).render('#paypal-physical-ticket');
|
||||
}).render('#paypal-hmb-physical-ticket');
|
||||
}
|
||||
|
||||
function physicalTicketPremium() {
|
||||
function hmsPhysicalTicket() {
|
||||
paypal.Buttons({
|
||||
style: {
|
||||
shape: 'pill',
|
||||
@@ -182,7 +182,7 @@
|
||||
|
||||
createOrder: function(data, actions) {
|
||||
return actions.order.create({
|
||||
purchase_units: [{"description":"HMS Physical Track Premium (2024)","amount":{"currency_code":"USD","value":349}}],
|
||||
purchase_units: [{"description":"HMS Physical Track (2025)","amount":{"currency_code":"USD","value":199}}],
|
||||
application_context: { shipping_preference: 'NO_SHIPPING'}
|
||||
});
|
||||
},
|
||||
@@ -199,7 +199,39 @@
|
||||
onError: function(err) {
|
||||
console.log(err);
|
||||
}
|
||||
}).render('#paypal-physical-ticket-premium');
|
||||
}).render('#paypal-hms-physical-ticket');
|
||||
}
|
||||
|
||||
function hmcPhysicalTicket() {
|
||||
paypal.Buttons({
|
||||
style: {
|
||||
shape: 'pill',
|
||||
color: 'gold',
|
||||
layout: 'vertical',
|
||||
label: 'pay',
|
||||
|
||||
},
|
||||
|
||||
createOrder: function(data, actions) {
|
||||
return actions.order.create({
|
||||
purchase_units: [{"description":"HMC Physical Track (2025)","amount":{"currency_code":"USD","value":299}}],
|
||||
application_context: { shipping_preference: 'NO_SHIPPING'}
|
||||
});
|
||||
},
|
||||
|
||||
onApprove: function(data, actions) {
|
||||
return actions.order.capture().then(function(orderData) {
|
||||
// Full available details
|
||||
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
|
||||
// Redirect
|
||||
actions.redirect('https://handmadecities.com/registered');
|
||||
});
|
||||
},
|
||||
|
||||
onError: function(err) {
|
||||
console.log(err);
|
||||
}
|
||||
}).render('#paypal-hmc-physical-ticket');
|
||||
}
|
||||
|
||||
function onlineTicket() {
|
||||
@@ -214,7 +246,7 @@
|
||||
|
||||
createOrder: function(data, actions) {
|
||||
return actions.order.create({
|
||||
purchase_units: [{"description":"HMS Online Track (2024)","amount":{"currency_code":"USD","value":74}}],
|
||||
purchase_units: [{"description":"HMS Online Track (2025)","amount":{"currency_code":"USD","value":59}}],
|
||||
application_context: { shipping_preference: 'NO_SHIPPING'}
|
||||
});
|
||||
},
|
||||
@@ -246,7 +278,7 @@
|
||||
|
||||
createOrder: function(data, actions) {
|
||||
return actions.order.create({
|
||||
purchase_units: [{"description":"HMS Online Track Premium (2024)","amount":{"currency_code":"USD","value":99}}],
|
||||
purchase_units: [{"description":"HMS Online Track Premium (2025)","amount":{"currency_code":"USD","value":99}}],
|
||||
application_context: { shipping_preference: 'NO_SHIPPING'}
|
||||
});
|
||||
},
|
||||
@@ -266,8 +298,9 @@
|
||||
}).render('#paypal-online-ticket-premium');
|
||||
}
|
||||
|
||||
physicalTicket();
|
||||
physicalTicketPremium();
|
||||
hmbPhysicalTicket();
|
||||
hmsPhysicalTicket();
|
||||
hmcPhysicalTicket();
|
||||
|
||||
onlineTicket();
|
||||
onlineTicketPremium();
|
||||
|
||||
Reference in New Issue
Block a user