diff --git a/osinaweb/customercore/__pycache__/views.cpython-310.pyc b/osinaweb/customercore/__pycache__/views.cpython-310.pyc index 1e342d69..d697e500 100644 Binary files a/osinaweb/customercore/__pycache__/views.cpython-310.pyc and b/osinaweb/customercore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/customercore/views.py b/osinaweb/customercore/views.py index be56c1d9..11d89d6d 100644 --- a/osinaweb/customercore/views.py +++ b/osinaweb/customercore/views.py @@ -63,9 +63,9 @@ def initiate_checkout(request): try: - response = requests.post('https://creditlibanais-netcommerce.gateway.mastercard.com/api/nvp/version/72', json=payload) + response = requests.post('https://creditlibanais-netcommerce.gateway.mastercard.com/api/nvp/version/72', data=payload) - print("Response Content:", response.content.decode()) # Print response content + print("Response Content:", response) if response.status_code == 200: res = response.json()