Paymenter icon indicating copy to clipboard operation
Paymenter copied to clipboard

[BUG] Automatic Refund when Pterodactyl no Suitable node found

Open Niktixx opened this issue 2 years ago • 0 comments

Describe the bug When there is no Suitable Node where the Server could Fit, then the Customer pays normally, but no Server is Created.. User gets no notification via email nor does it get refunded...

To Reproduce

  1. order a product which more ram then currently available on the nodes

Expected behavior The Expectation would be that the System checks BEFORE purchasing, if the Server will fit on the Node and if not, that there should be an SOLD out Tag on the Add to card button...

If that is not possible, then after the System detects following error:

Pterodactyl: Failed to create server for order 13 with error {"errors":[{"code":"NoViableNodeException","status":"400", "detail":"No nodes satisfying the requirements specified for automatic deployment could be found.","source":{"line":95, "file":"VappV/Services/DeploymentVFindViableNodesService.php"}, "meta":{"trace": [{"file":"Vvar/wwwVpterodactylV/appVServicesVServers/ServerCreationService.php","line":122, "function":"handle","class":"Pterodactyl\Services\Deployment\FindViableNodesService","type"."->"}, {"file":"Vvar/wwwV/pterodactylV/app/Services/Servers/ServerCreationService.php","line":57,"function":"configureDeployment", "class":"Pterodactyl\Services\Servers\ServerCreationService","type":"-

{"file":"Vvar/wwwVpterodactylVapp/HttpVControllersV/ApiV/ApplicationVServersVServerController.php","line":58,"function":"handle", "class":"Pterodactyl\Services\Servers\ServerCreationService","type"."

Then the System should automatically refund and sent an information via Email...

Additional context Add any other context about the problem here.

Niktixx avatar Mar 25 '24 12:03 Niktixx