something
This commit is contained in:
@@ -54,6 +54,11 @@ def healthz():
|
|||||||
def ipn():
|
def ipn():
|
||||||
# 1. Get the signature from the 'Verification-Token' header
|
# 1. Get the signature from the 'Verification-Token' header
|
||||||
token = request.headers.get('Verification-Token')
|
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
|
# 2. If it exists, inject it into the location the SDK expects
|
||||||
if token:
|
if token:
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Notes:
|
|||||||
• Always trust order status updates coming from IPN, not only the browser redirect.
|
• Always trust order status updates coming from IPN, not only the browser redirect.
|
||||||
"""
|
"""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
import time
|
||||||
import os
|
import os
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
@@ -159,6 +159,8 @@ def _build_payment_service(settings: Optional[NetopiaSettings] = None) -> Paymen
|
|||||||
print('public_key_str= ', raw_key)
|
print('public_key_str= ', raw_key)
|
||||||
#private_key_str=settings.private_key_str
|
#private_key_str=settings.private_key_str
|
||||||
print('pos_signature_set= ',settings.pos_signature_set)
|
print('pos_signature_set= ',settings.pos_signature_set)
|
||||||
|
print(f"DEBUG: System Time: {int(time.time())}")
|
||||||
|
|
||||||
client = PaymentClient(config)
|
client = PaymentClient(config)
|
||||||
return PaymentService(client)
|
return PaymentService(client)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user