something
This commit is contained in:
@@ -55,6 +55,11 @@ def ipn():
|
||||
# 1. Get the signature from the 'Verification-Token' header
|
||||
token = request.headers.get('Verification-Token')
|
||||
|
||||
if token:
|
||||
# This ignores the signature completely just so we can see what's inside
|
||||
raw_data = jwt.decode(token, options={"verify_signature": False})
|
||||
app.logger.info(f"UNVERIFIED JWT CONTENT: {raw_data}")
|
||||
|
||||
# 2. If it exists, inject it into the location the SDK expects
|
||||
if token:
|
||||
request.headers.environ['HTTP_X_NETOPIA_SIGNATURE'] = token
|
||||
|
||||
@@ -54,7 +54,7 @@ Notes:
|
||||
• Always trust order status updates coming from IPN, not only the browser redirect.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import time
|
||||
import os
|
||||
from datetime import datetime, timezone
|
||||
from dataclasses import dataclass
|
||||
@@ -159,6 +159,8 @@ def _build_payment_service(settings: Optional[NetopiaSettings] = None) -> Paymen
|
||||
print('public_key_str= ', raw_key)
|
||||
#private_key_str=settings.private_key_str
|
||||
print('pos_signature_set= ',settings.pos_signature_set)
|
||||
print(f"DEBUG: System Time: {int(time.time())}")
|
||||
|
||||
client = PaymentClient(config)
|
||||
return PaymentService(client)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user