hide fake gateway
This commit is contained in:
parent
11154086fd
commit
8b19c223d5
2 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue