Generate pay link¶
Example
Output
- 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 |