emile 1 year ago
parent fbfd339bf2
commit 2400fd953f

@ -53,7 +53,7 @@ def initiate_checkout(request):
"apiUsername": api_username, "apiUsername": api_username,
"apiPassword": api_password, "apiPassword": api_password,
"merchant": merchant_id, "merchant": merchant_id,
"interaction.operation": "AUTHORIZE", "interaction.operation": "PURCHASE",
"interaction.merchant.name": merchant_name, "interaction.merchant.name": merchant_name,
"order.id": order_id, "order.id": order_id,
"order.amount": "100.00", "order.amount": "100.00",
@ -63,7 +63,7 @@ def initiate_checkout(request):
try: 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 print("Response Content:", response.content.decode()) # Print response content

Loading…
Cancel
Save