bugfix
This commit is contained in:
parent
7e9d53e0b2
commit
71fe6c7b83
3 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class PaymentRequest(models.Model):
|
||||||
def set_gateway(self, gateway):
|
def set_gateway(self, gateway):
|
||||||
self.gateway = gateway
|
self.gateway = gateway
|
||||||
if gateway == 'pna':
|
if gateway == 'pna':
|
||||||
pna = PNA.objects.create()
|
pna = PNA.objects.create(payment_request=self)
|
||||||
pna.payment_request = self
|
pna.payment_request = self
|
||||||
|
|
||||||
if gateway == 'fake':
|
if gateway == 'fake':
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ class PaymentRequestSerializer(serializers.ModelSerializer):
|
||||||
'amount',
|
'amount',
|
||||||
'updated_at',
|
'updated_at',
|
||||||
'callback_url',
|
'callback_url',
|
||||||
|
"phone_number"
|
||||||
)
|
)
|
||||||
|
|
||||||
read_only_fields = ['uuid', 'user','updated_at', 'state', 'created_at']
|
read_only_fields = ['uuid', 'user','updated_at', 'state', 'created_at']
|
||||||
|
|
|
||||||
BIN
static/image/fake.png
Normal file
BIN
static/image/fake.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Loading…
Add table
Reference in a new issue