Skip to content

Generate pay link

Example

from pprint import pprint

from payme.methods.generate_link import GeneratePayLink

pay_link = GeneratePayLink(
  order_id="999",
  amount=9999,
  callback_url="your-callback-url"
).generate_link()

pprint(pay_link)
Output
https://checkout.paycom.uz/bT01ZTczMGU4ZTBiODUyYTQxN2FhNDljZWI7YWMub3JkZXItaWQ9OTk5O2E9OTk5OTtjPXlvdXItY2FsbGJhY2stdXJs

  • Parameters
Argument Type Description
order_id str Required. The order_id for paying
amount Decimal Required. The amount belong to the order. Indicated in tiyins
callback_url str Optional. The merchant api callback url to redirect after payment. By default, it takes PAYME_CALL_BACK_URL from your settings

Methods

  • generate_link() -> to generate payment link.

    Does not take any arguments

  • to_tiyin() -> convert from sum to tiyin.

Argument Type Description
amount Decimal Required. The order amount
  • to_sum() -> convert from tiyin to sum.
Argument Type Description
amount Decimal Required. The order amount