diff --git a/osinaweb/customercore/__pycache__/views.cpython-310.pyc b/osinaweb/customercore/__pycache__/views.cpython-310.pyc index 21432adc..7bf03a5f 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 de040a24..bfd60fdc 100644 --- a/osinaweb/customercore/views.py +++ b/osinaweb/customercore/views.py @@ -53,7 +53,7 @@ def initiate_checkout(request): "apiUsername": api_username, "apiPassword": api_password, "merchant": merchant_id, - "interaction.operation": "AUTHORIZE", + "interaction.operation": "PURCHASE", "interaction.merchant.name": merchant_name, "order.id": order_id, "order.amount": "100.00", @@ -63,7 +63,7 @@ def initiate_checkout(request): try: - response = requests.post("https://creditlibanais-netcommerce.gateway.mastercard.com/api/rest/version/78/merchant/TEST06127800/session", data=data) + response = requests.post("https://creditlibanais-netcommerce.gateway.mastercard.com/api/nvp/version/72", data=data) print("Response Content:", response.content.decode()) # Print response content