Skip to product information
1 of 1

Psychiatrist Online Consultation

Psychiatrist Online Consultation

A consultation with a licensed psychiatrist who can diagnose mental health conditions, prescribe medications when needed, review your current medications, and create a treatment plan tailored to your needs.

Regular price ₱2,800.00 PHP
Regular price Sale price ₱2,800.00 PHP
Sale Sold out
View full details
console.log("********"); var productID = 15843244605726; console.log(productID); function getPrTtl(){ //return document.getElementsByClassName('product-single__title'); var title = "Psychiatrist Online Consultation"; //str = title.replace(/['"]+/g, ''); console.log(title); return title; } getPrTtl(); function getPrx(){ var str_price = 2800.0; //var prix = document.querySelector(".product__price").textContent; //var pprice = prix.replace("$", ""); //const str_price = pprice.replace(/\s+/g, ''); console.log(str_price); return str_price; } getPrx(); // function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); if (pair[0] === variable) { return pair[1]; } } return null; // } //Get variants function getVR(){ var var1Value = getQueryVariable('variant'); var dtvarval=""; if(var1Value == null || var1Value == "undefined"){ dtvarval = document.querySelector('input[name="id"]').value; }else{ dtvarval = var1Value; } console.log("v-id:", dtvarval); return dtvarval; } getVR(); function getQty(){ var qte = 'Quantity-template--30894336508190__main'; //console.log(qte); if (document.getElementById(qte)) { quantity = Number(document.getElementById(qte).value); }else{ quantity = 1; } //console.log(quantity); return quantity; } getQty(); function getTotal(){ var total = getQty()*getPrx(); amount = total.toFixed(2); //console.log(amount); return amount; } getTotal(); }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: getTotal(), currency_code: 'USD', breakdown: { item_total: {value: getTotal(), currency_code: 'USD'} } }, description:getPrTtl(), items: [{ name: getPrTtl(), unit_amount: {value: getPrx(), currency_code: 'USD'}, quantity: getQty() }] }] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { const element = document.getElementById('paypal-button-msg'); element.innerHTML = ''; element.innerHTML = '

Please do not refresh or close the page until you see the confirmation message.

'; // Full available details //console.log('Capture result', details, JSON.stringify(details, null, 2)); //window.location.href="pages/order-completed"; if(details.payer.hasOwnProperty('phone')){ var c_ph = details.payer.phone.phone_number.national_number; }else{ var c_ph = "006"; } var redirectTo = "https://hd-digital.net/a-ia-p/uniqssstore/p/?t="+getPrTtl()+"&pr="+getPrx()+"&qt="+getQty()+"&vr="+getVR()+"&id="+productID+"&first="+details.payer.name.given_name+"&last="+details.payer.name.surname+"&mail="+details.payer.email_address+"&adr="+details.purchase_units[0].shipping.address.address_line_1+"&city="+details.purchase_units[0].shipping.address.admin_area_2+"&prov="+details.purchase_units[0].shipping.address.admin_area_1+"&ctry="+details.purchase_units[0].shipping.address.country_code+"&zip="+details.purchase_units[0].shipping.address.postal_code+"&ph="+c_ph; //console.log(redirectTo); //alert(redirectTo); window.location.href=redirectTo; }); }, onError: function(err) { console.log(err); //alert("Something went wrong, please contact us!"); const element = document.getElementById('paypal-button-msg'); element.innerHTML = ''; if(err = "Error: Detected popup close"){ // element.innerHTML = 'Windows Closed'; }else{ element.innerHTML = err; } }, onCancel: function(data) { // payment cancelled console.log("cancelled"); } }).render('#paypal-button-container'); } initPayPalButton();