Skip to main content

Documentation Index

Fetch the complete documentation index at: https://primer.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Payment card fraud losses worldwide exceeded $32 billion in 2021 and will continue to rise. Protect your bottom line by deploying a fraud service, like Riskified, to stop bad actors from making it through your checkout Primer supports Signifyd’s Checkout API. The Checkout API is to be called both before (Pre-Authorization) and after (Post-Authorization) a payment.
See our Fraud Overview for more general information about how we support fraud prevention.

What is supported?

Actions

  • Pre-authorization
  • Post-authorization

Resulting decisions

  • Pass
  • 3DS
  • Reject
  • Fail

Payment methods

  • Card
  • Apple Pay
  • Google Pay
  • PayPal

Instructions

Set-up Instructions

Required fields

The following fields are available for passing to Primer, and on to Signifyd.
FieldTypeRequired
metadata.connections.signifyd.device.sessionIdstringyes

Testing

When using Signifyd testing environment with Testing Teams,
  • To trigger a Pass outcome, set metadata.connections.signifyd.purchase.userAccount.email to testapproves@signifyd.com
  • To trigger a Reject outcome, set metadata.connections.signifyd.purchase.userAccount.email to testdeclined@signifyd.com

Mapping

Base mapping

SignifydPrimer
orderIdpayment.orderId
userAccount.accountNumberpayment.customerId
transactions[].amountpayment.amount
transactions[].currencypayment.currencyCode
purchase.createdAtPayment creation time
purchase.orderChannelpayment.order.orderChannel
purchase.totalPricepayment.amount
purchase.totalShippingCostpayment.order.shipping.amount
purchase.currencypayment.currencyCode
device.clientIpAddresspayment.metadata.fraud_context.device_details.browser_ip
merchantCategoryCodepayment.metadata.fraud_context.merchant_details.merchant_category_code
userAccount.emailpayment.customer.emailAddress
userAccount.usernamepayment.customer.emailAddress
purchase.confirmationEmailpayment.customer.emailAddress
userAccount.phonepayment.customer.mobileNumber
purchase.confirmationPhonepayment.customer.mobileNumber
purchase.products[].itemIdpayment.order.lineItems[].itemId
purchase.products[].itemNamepayment.order.lineItems[].name
purchase.products[].itemPricepayment.order.lineItems[].amount
purchase.products[].itemQuantitypayment.order.lineItems[].quantity
purchase.products[].itemIsDigitalpayment.order.lineItems[].productType
purchase.products[].itemCategorypayment.order.lineItems[].category
purchase.products[].itemSubCategorypayment.order.lineItems[].subcategory
purchase.products[].itemUrlmetadata.connections.signifyd.purchase.products[].itemUrl
purchase.shipments[].destination.fullNamepayment.customer.shippingAddress.firstName + lastName (concatenated)
purchase.shipments[].destination.address.streetAddresspayment.customer.shippingAddress.addressLine1
purchase.shipments[].destination.address.unitpayment.customer.shippingAddress.addressLine2
purchase.shipments[].destination.address.citypayment.customer.shippingAddress.city
purchase.shipments[].destination.address.countryCodepayment.customer.shippingAddress.countryCode
purchase.shipments[].destination.address.postalCodepayment.customer.shippingAddress.postalCode
purchase.shipments[].destination.address.provinceCodepayment.customer.shippingAddress.state
purchase.totalShippingCost and purchase.shipments[].destination.* are only sent to Signifyd when both payment.order.lineItems and payment.order.shipping are provided.

Fields not currently mapped

The following Primer fields are not currently sent to Signifyd.
PrimerExpected Signifyd field
payment.metadata.fraud_context.device_details.cookie_tokendevice.sessionId
payment.metadata.fraud_context.device_details.source
payment.metadata.fraud_context.device_details.user_agent
payment.order.lineItems[].description
payment.customer.firstName
payment.customer.lastName

Custom field mapping

You can use Advanced Metadata Mapper with Signifyd to map any metadata field to Signifyd’s requests.