emile 1 year ago
parent fbfd339bf2
commit 2400fd953f

@ -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

Loading…
Cancel
Save