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):
|
def set_gateway(self, data):
|
||||||
|
|
||||||
if 'fake' in data:
|
# if 'fake' in data:
|
||||||
self.gateway = GatewayChoise.FAKE
|
# self.gateway = GatewayChoise.FAKE
|
||||||
fake = Fake.objects.create(payment_request=self)
|
# fake = Fake.objects.create(payment_request=self)
|
||||||
fake.payment_request = self
|
# fake.payment_request = self
|
||||||
|
#
|
||||||
|
|
||||||
|
if 'pna' in data:
|
||||||
elif 'pna' in data:
|
|
||||||
self.gateway = GatewayChoise.PNA
|
self.gateway = GatewayChoise.PNA
|
||||||
pna = PNA.objects.create(payment_request=self)
|
pna = PNA.objects.create(payment_request=self)
|
||||||
pna.payment_request = self
|
pna.payment_request = self
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@
|
||||||
<button type="submit" class="btn mx-auto center-block" name="pna">
|
<button type="submit" class="btn mx-auto center-block" name="pna">
|
||||||
<img class="img-thumbnail" width="128" height="128" src="{% static "image/pna.png" %}"/>
|
<img class="img-thumbnail" width="128" height="128" src="{% static "image/pna.png" %}"/>
|
||||||
</button>
|
</button>
|
||||||
<button type="submit" class="btn mx-auto center-block" name="fake">
|
{# <button type="submit" class="btn mx-auto center-block" name="fake">#}
|
||||||
<img class="img-thumbnail" width="128" height="128" src="{% static "image/fake.png" %}"/>
|
{# <img class="img-thumbnail" width="128" height="128" src="{% static "image/fake.png" %}"/>#}
|
||||||
</button>
|
{# </button>#}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue