website stripe updated 4

This commit is contained in:
rizwanisready
2024-03-07 19:29:04 +05:30
parent 87bd5a4785
commit 8d199f5db9

View File

@@ -211,6 +211,7 @@ class PaymentProcessingService:
def _get_transaction_by_id(self):
print("self.webhook_data: ", self.webhook_data)
print("self.charge_data: ", self.charge_data)
print("self.metadata: ", self.charge_data["metadata"])
# Extract transaction_id from webhook metadata
transaction_id = int(self.charge_data["metadata"]["transaction_id"])
# Fetch the Transaction instance using the transaction_id