Skip to content

Payload branch "payment"

Every checkout does require a sort of "payment method", which is always inferred in this branch (event special/free purchase without "payments");

Let's review an example:

js
{
  "context": "...",
  "event": "...",
  "checkout_step": "...",
  "attributes": {...},
  "products": [...],
  "carrier": {...},
  "payment": {
    "id": 1,
    "name": "Paypal",
    "module": "paypal",
    "online": true
  },
  "delivery": {...},
  "billing": {...},
  "user": {...},
  "engagements": {...}
}

Variables full details

Here you can find a detailed description of each variable or sub-branch:

VarTypeDescription
idintUnique payment method id (cross-tenant)
namestringPayment method name (translated)
modulestringInternal gateway used (cross-tenant)
onlinebooleanPayment method requires an external gateway/redirect

Released under the MIT License.