website stripe updated 3

This commit is contained in:
rizwanisready
2024-03-07 19:26:39 +05:30
parent eb322c4345
commit 87bd5a4785

View File

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