add int id

This commit is contained in:
Sayyid Hamid Mahdavi 2025-05-15 17:12:04 +03:30
parent 376359f723
commit 96591dd83a
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ class ChargeRequest(models.Model):
pna_client = PNAClient()
description = 'from addwin ipg'
pna_callback_url = f'https://ipg.addwin.ir/page/pna_callback/{self.pk}/'
response = pna_client.request_normal_sale(self.amount, description, pna_callback_url, order_id=3)
response = pna_client.request_normal_sale(self.amount, description, pna_callback_url, order_id=self.id)
self.pna_status_code = response['status']
self.pna_status_message = response.get('title')

View file

@ -210,7 +210,7 @@ CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"
SPECTACULAR_SETTINGS = {
'TITLE': 'merchants',
'TITLE': 'IPG',
'DESCRIPTION': 'service api reference',
'VERSION': '1.0.0',
'SERVE_INCLUDE_SCHEMA': False,