[inv 1.5] Inventory Purchase and Control via PHP

Greeting to all , kindly help me. i have created the Payout and request Stock buttons but I dont know how to create their actions and Rules so that I link sambapos4 with inventory purchase via php.

I have been trying to follow HTML Widget URL: setting URL value with Set Widget Value Action

@QMcKay , kindly help, thanks