1. Generar URL hosted payment sin formulario

post/v3.2/checkout/session/

Request

  • Base URL
    https://gateway-154.netpaydev.com/gateway-ecommerce
  • URL
    https://gateway-154.netpaydev.com/gateway-ecommerce/v3.2/checkout/session/
  • Auth
    none required

Headers

Authorizationstring required

Secretkey

Content-Typestring

Request body

successUrlstring

Url de redirección una vez se genera una referencia de pago en efectivo

cancelUrlstring

Url para activar el botón de regreso de la pantalla de NetPay

paymentMethodTypesstring[] required

Métodos de pago

linkTypestring

Tipo de pantalla Netpay

merchantRefCodestring required

Código de referencia único para identificar pago

Response

200

idinteger
sessionIdstring
successUrlstring
cancelUrlstring
paymentMethodTypesstring[]
createdAtstring
updatedAtstring
storeIdAdqinteger
linkTypestring
merchantRefCodestring
hostedCheckoutUrlstring
paidOutboolean
hasBillingboolean

Example response

{
  "id": 7455,
  "sessionId": "aRT6d9WhaBjpp=E68!j!!pWfxbzC9M",
  "successUrl": "http://example.com/success",
  "cancelUrl": "http://example.com/cancel",
  "paymentMethodTypes": [
    "card"
  ],
  "createdAt": "2022-04-07T20:43:21.244+0000",
  "updatedAt": "2022-04-07T20:43:21.244+0000",
  "lineItems": [
    {
      "name": "Pizza",
      "currency": "MXN",
      "quantity": 1,
      "amount": 290,
      "createdAt": "2022-04-07T20:43:21.245+0000",
      "updatedAt": "2022-04-07T20:43:21.245+0000"
    }
  ],
  "storeIdAdq": 630112,
  "linkType": "NETPAY_CHECKOUT",
  "merchantRefCode": "test-11127",
  "hostedCheckoutUrl": "https://gateway-154.netpaydev.com/hosted-checkout/session/aRT6d9WhaBjpp%3DE68%21j%21%21pWfxbzC9M/pk_netpay_JGFtQNUFIENMlhkoBXdgiozmQ",
  "billing": {
    "firstName": "Jon",
    "lastName": "Doe",
    "email": "accept@netpay.com.mx",
    "phone": "6141870165",
    "merchantReferenceCode": "rGhWPLvLbk",
    "address": {
      "city": "Monterrey",
      "country": "MX",
      "postalCode": "67186",
      "state": "Nuevo Leon",
      "street1": "Filosofos 100",
      "street2": "Tecnologico"
    }
  },
  "hasBilling": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.