#!/bin/bash


RECIBO="$1"
LEGAJO="$2"
EMAIL="$3"
D_SISTEMA="$4"
IP="$5"

JSON=$(cat <<EOF
{
    "recibo": "$RECIBO",
    "legajo": "$LEGAJO",
    "email": "$EMAIL",
    "d_sistema": "$D_SISTEMA",
    "ip": "$IP"
}
EOF
)


RESPONSE=$(curl -s -X POST \
  -H "Content-Type: application/json" \
  -d "$JSON" \
  http://dev-sip-web08.vicentelopez.gov.ar/api-epagos/Posnet/solicitud_pago_pinpad.php)


