OKSDK.Payment.query

Method signature

Method generates URL for processing in-app payment.

OKSDK.Payment.query(productName, productPrice, productCode, options)

Where:

  • productName - product name that is going to be shown in a payment dialog. Required parameter;
  • productPrice - product price on OKs. Required parameter;
  • productCode - product code. Will be used in a payment transaction info and will be sent to app’s callback service. Required parameter;
  • options - deprecated parameter.

Example usage

OKSDK.Payment.query(
    "One apple",
    30,
    "apple",
    null
);