---
updatedAt: 2026-03-13T16:01:16.000Z
agentTools:
  projectIndex: https://developer.paze.com/public/llms.txt
---

# Elavon Payment Gateway 

```javascript JavaScript
const completeResponse = await paze.complete({
  // Transaction semantics
  transactionType: "PURCHASE", // Required: "PURCHASE" | "CARD_ON_FILE" (store/manage for later use) | "BOTH" (CARD_ON_FILE + PURCHASE)
  sessionId: "YOUR_SESSION_ID", // Recommended: same value per session

  transactionValue: {
    // Conditional: Required if transactionType is "PURCHASE" or "BOTH"
    transactionCurrencyCode: "USD", // Required with transactionValue
    transactionAmount: "149.99", // Required with transactionValue
  },

  // Output behavior
  transactionOptions: {
    // Optional
    payloadTypeIndicator: "PAYMENT", // Optional: "ID" (return only an ID) | "PAYMENT" (return JWE now)
    billingPreference: "ALL", // Optional: "ALL" | "NONE"
  },

  // Additional metadata (used for Paze Fraud Liability Shift Program)
  enhancedTransactionData: {
    // Optional
    ecomData: {
      cartContainsGiftCard: false, // Optional: Boolean
      orderForPickup: false, // Optional: Boolean
      orderQuantity: "2", // Optional: String (max length 10)
      orderHighestCost: "89.99", // Optional: String (max length 10)

      finalShippingAddress: {
        // Optional: Address object
        name: "Jane Doe", // Optional: String (max length 100)
        line1: "123 Main St", // Conditional: Returned if billingPreference is ALL
        line2: "Apt 4B", // Optional
        city: "Phoenix", // Conditional: Returned if billingPreference is ALL
        state: "AZ", // Conditional: Returned if billingPreference is ALL
        zip: "85001", // Required
        countryCode: "US", // Required (ISO 3166-1 alpha-2)
      },
    },
  },
});
```

```json JSON
{
  "card": {
    "holderName": "John Doe",
    "billTo": {
      "fullName": "John Doe",
      "countryCode": "USA",
      "postalCode": "94043",
      "street1": "1600 Amphitheatre Parkway",
      "city": "Mountain View",
      "region": "CA"
    }
  },
  "token": "{\"signature\":\"MEQCIH0nEUW6uEDnxNAeUlxJw7UgtV53jEtFycJG6QEX34u0AiBVm00R1O8oL22RLQ26MPDd7Sn/24m4+5AxzmD8tEctjA\\u003d\\u003d\",\"intermediateSigningKey\":{\"signedKey\":\"{\\\"keyValue\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELNIQDI21szog5jsBdgYLhMZEDcvOr59V1XI3vWtDVWgd/dU+yx/y7VZ7UxqKkTgA/o5TikdJn/l4qc8wgR3LYw\\\\u003d\\\\u003d\\\",\\\"keyExpiration\\\":\\\"1673524261966\\\"}\",\"signatures\":[\"MEUCIGe/oQ5E1hg5ONxtGQR+E4IoMgHaazatEOszlMTOwyI5AiEAos7ETQoM46nsGCfNqEBUPE23voAKIIefJ6Sg870trts\\u003d\"]},\"protocolVersion\":\"ECv2\",\"signedMessage\":\"{\\\"encryptedMessage\\\":\\\"K8CTFde4vVSL+1ttpVxIciqQj94+ji/fu7l1tkR9dOElg65FU2lfEcFLDD374BVdZlZwgQLZOt8MOHc8vQLDKt1YYfTaZfrLfLrD+3Rv10YIsvgF0jXHQ9NmgDYGt06XNhg8E5lcmo+Fpk3d9qCSEXaCN3vk6uSmfsn2ZoMHEqhTpnSB+RKmMbkC8QfQn7gEeS12HKWSCRHGb/NsyFVNPrQYEpuhkZOJMKmS+nZVgtNdfg6hRpWFjg7Os4YwQIiYRJYh2st0zD1fUwDPSX4iJJ9BwFOrj8KMEoHNh5SnTcxeoAuXHm5boFxbVXZXJNPSHh5ZsboNdd2mYYnfr1QzF9Jy/TDhU1vkqRPAKypzPpGjNdgMFKpqpk2nwgrzmtP7sZitRC59qeutLkaI8IPXHUmeMCoAHsPTuk+OWBQI2N/mPM6AVo/ahu/V1G++vdhsfEi5W5KPhq6IW7j9gGh840ur489AjpV1W6ihLsZVIC/rgjPyOqrorwx/U1pJ+Sf0Beeyc5jDTRb/pmlCgy4p8F+Qy1eqw4YmKtP/da4IVtKWvXWe+KRTZqd/s17j5qciknMn83R1M70jCFIAWuM0UDvb6iFO7Qgq1bqZ\\\",\\\"ephemeralPublicKey\\\":\\\"BKgFE3NUYmE4kGiIbv/L6LwlXLLWbT1g9QEKdpzI9qRbGJ3xzYNSmJ2DvHrtTg4K2Wn2l08cZROjc2PwWRYhKCA\\\\u003d\\\",\\\"tag\\\":\\\"FDREH5rjJYvSYTSz7hw3jB3Vm+t3HTiS1thPM78eMaw\\\\u003d\\\"}\"}",
  "payloadId": "afbexyzf-021x-ca50-e22e-1d15abc2ec01",
  "sessionId": "pr9i793q4lwcqnr5123",
  "customReference": "customReference",
  "customFields": {
    "name1": "value1",
    "name2": "value2"
  }
}
```

```json Response Example
{
  "href": "https://api.converge.eu.elavonaws.com/google-pay-payments/q3rdjp2kfx4rwbgdcvr66wwhcfjw",
  "id": "q3rdjp2kfx4rwbgdcvr66wwhcfjw",
  "createdAt": "2023-01-04T13:44:36.597Z",
  "expiresAt": "2023-01-04T14:14:36.597Z",
  "merchant": "https://api.converge.eu.elavonaws.com/merchants/yfv23vhdptrgd3c3dpg3khydw22f",
  "processorAccount": "https://api.converge.eu.elavonaws.com/processor-accounts/d4xcjxf4282xrtvcdcpv3wrxq77v",
  "card": {
    "holderName": "John Doe",
    "panFingerprint": "vdr9fxwq888xybphtfm2xhxv78vj",
    "expirationMonth": 12,
    "expirationYear": 2028,
    "billTo": {
      "fullName": "John Doe",
      "company": null,
      "street1": "1600 Amphitheatre Parkway",
      "street2": null,
      "city": "Mountain View",
      "region": "CA",
      "postalCode": "94043",
      "countryCode": "USA",
      "primaryPhone": null,
      "alternatePhone": null,
      "fax": null,
      "email": null
    },
    "maskedNumber": "XXXXXXXXXXXX1111",
    "last4": "1111",
    "bin": "411111",
    "scheme": "Visa",
    "brand": "Visa Credit",
    "fundingSource": "credit",
    "issuingBank": "Google Pay Test",
    "issuingCountry": "USA",
    "issuingCurrency": "USD",
    "isDebit": "false",
    "isCorporate": "false",
    "isDccAllowed": "true"
  },
  "customReference": null,
  "customFields": null,
  "verificationResults": {
    "name": "unprovided",
    "securityCode": "unprovided",
    "addressStreet": "unprovided",
    "addressPostalCode": "unprovided",
    "threeDSecureV1": "unprovided",
    "threeDSecureV2": "unprovided",
    "cryptogramSecurity": "unprovided"
  }
}
```

# Extract securePayload

<!-- javascript@ -->
<!-- json@ -->

Once the buyer confirms their intent to pay within the Paze experience:

If using Web SDK
You ask the SDK to finalize using complete() to return the payment payload that your payment processor needs. Your promise resolves with a completeResponse : <JWS> that contains the securedPayload.

# Call Elavon Payment Gateway

<!-- javascript@1 -->
<!-- json@ -->

Call the "Create Paze Payment" to process the securePayload received from Paze to process your payment