hide fake gateway

This commit is contained in:
Sayyid Hamid Mahdavi 2025-06-12 07:52:00 +03:30
parent 11154086fd
commit 8b19c223d5
2 changed files with 9 additions and 9 deletions

View file

@ -52,13 +52,13 @@ class PaymentRequest(models.Model):
def set_gateway(self, data):
if 'fake' in data:
self.gateway = GatewayChoise.FAKE
fake = Fake.objects.create(payment_request=self)
fake.payment_request = self
# if 'fake' in data:
# self.gateway = GatewayChoise.FAKE
# fake = Fake.objects.create(payment_request=self)
# fake.payment_request = self
#
elif 'pna' in data:
if 'pna' in data:
self.gateway = GatewayChoise.PNA
pna = PNA.objects.create(payment_request=self)
pna.payment_request = self

View file

@ -26,9 +26,9 @@
<button type="submit" class="btn mx-auto center-block" name="pna">
<img class="img-thumbnail" width="128" height="128" src="{% static "image/pna.png" %}"/>
</button>
<button type="submit" class="btn mx-auto center-block" name="fake">
<img class="img-thumbnail" width="128" height="128" src="{% static "image/fake.png" %}"/>
</button>
{# <button type="submit" class="btn mx-auto center-block" name="fake">#}
{# <img class="img-thumbnail" width="128" height="128" src="{% static "image/fake.png" %}"/>#}
{# </button>#}
</div>
</div>
</div>