This commit is contained in:
Sayyid Hamid Mahdavi 2025-05-27 10:51:46 +03:30
parent 7e9d53e0b2
commit 71fe6c7b83
3 changed files with 2 additions and 1 deletions

View file

@ -49,7 +49,7 @@ class PaymentRequest(models.Model):
def set_gateway(self, gateway):
self.gateway = gateway
if gateway == 'pna':
pna = PNA.objects.create()
pna = PNA.objects.create(payment_request=self)
pna.payment_request = self
if gateway == 'fake':

View file

@ -16,6 +16,7 @@ class PaymentRequestSerializer(serializers.ModelSerializer):
'amount',
'updated_at',
'callback_url',
"phone_number"
)
read_only_fields = ['uuid', 'user','updated_at', 'state', 'created_at']

BIN
static/image/fake.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB