Payment Service||doc135335

September 20, 2022

PayHelper

Service:This class is a service,You can use the Game.GetService function to get

This service can only be accessed on the server side


Payment services are mainly game services responsible for in-game transactions.

usepayMoneyWhen a designated user asks him to pay for the Golden Cube to purchase in-game services, a pop-up window will first prompt the user whether to confirm the purchase, and the payment request will be ignored before the user confirms the purchase.

The result of the purchase is used as a parameter to execute the callback function. If it fails, the golden cube is insufficient.


Function

void payMoney ( Player player, int uniqueId, int price, function callback )

A pop-up window prompting payment for the specified player