<?php
class CreatePaymentRequestLightbox{
public $pedido_total = 0;
public function main(){
echo $this->pedido_total;
}
}
$valortotal = 15.00;
$paymentRequest = new CreatePaymentRequestLightbox();
$paymentRequest->pedido_total = $valortotal;
$paymentRequest->main();
PD9waHAKCmNsYXNzIENyZWF0ZVBheW1lbnRSZXF1ZXN0TGlnaHRib3h7CglwdWJsaWMgJHBlZGlkb190b3RhbCA9IDA7CgoJcHVibGljIGZ1bmN0aW9uIG1haW4oKXsKCQllY2hvICR0aGlzLT5wZWRpZG9fdG90YWw7Cgl9Cn0KCiR2YWxvcnRvdGFsID0gMTUuMDA7CiRwYXltZW50UmVxdWVzdCA9IG5ldyBDcmVhdGVQYXltZW50UmVxdWVzdExpZ2h0Ym94KCk7CiRwYXltZW50UmVxdWVzdC0+cGVkaWRvX3RvdGFsID0gJHZhbG9ydG90YWw7CiRwYXltZW50UmVxdWVzdC0+bWFpbigpOw==