add int id
This commit is contained in:
parent
376359f723
commit
96591dd83a
2 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue