This guide outlines best practices and technical specifications for subscription-based merchants integrating Ravelin’s Payment Fraud solution.
The customerId field is critical to your integration, as Ravelin analyzes individual customer behavior. All orders placed by the same customer account should map to a single customer ID.
The eventType field is useful to include in all API requests, to help identify what event in your system triggered an API call. It helps us to understand your integration more quickly, and debug any issues. Throughout this guide we have made suggestions on usage of this field.
Disputes must be sent to Ravelin for all payments where a dispute occurs to ensure the dispute is linked back to the original order. Please see our guide on Sending Disputes for more information.
Every individual payment in a subscription, whether an initial sign-up, a renewal, regular recurring payment, or a one-off payment must be represented with a new and unique orderId.
The transactions.recurringTransactionInitiator field should be used to differentiate customer initiated transactions (CITs) from merchant initiated transactions (MITs) across a subscription.
This can be used to filter and report on the different transaction types in the Ravelin dashboard. This guide will advise how to use this field across different scenarios.
The initial sign-up is the first CIT in the subscription.
transactions.recurringTransactionInitiator field to CUSTOMER to indicate the first customer-initiated payment.eventType field to a suitable value, for example initial_signup.Recurring payments are MITs following the initial sign-up. Many merchants choose not to have a fraud recommendation on recurring payments and renewals, however if you would like to consider a recommendation please speak to the Ravelin integrations team as this may have an impact on billing.
The volume of MITs within a subscription is usually significantly higher than CITs. Please inform the Ravelin integrations team of your anticipated volumes for recurring payments and renewals.
Even without a recommendation request, sending recurring payment data to Ravelin ensures complete visibility into customer behavior and allows chargeback/dispute mapping and broader business intelligence reporting. Frequently, the majority of disputes for subscription merchants occur on recurring orders.
A fraudster may create a subscription using a stolen card, if the customer does not notice this initially the bank may begin declining transactions due to suspicious behavior therefore seeing failed recurring transactions is beneficial.
score query parameter.transactions.recurringTransactionInitiator field to MERCHANT to specify a merchant-initiated recurring payment.eventType field to a suitable value, for example recurring_order.Free trials grant customers access to a service under the assumption that they will auto-enroll into a rolling subscription unless canceled.
v2/checkout?score=checkoutPreAuth, followed by a v2/checkout update payload detailing the outcome.order.price, item.price, and transactions.amount to 0.order.price, item.price, and transactions.amount now differ from the zero-value trial request.Merchants offering standalone items outside of the subscription itself (e.g., single-day passes, event tickets) should send these via a separate Checkout request at the time of the customer making the payment.
transactions.recurringTransactionInitiator field should be omitted in the case of a one-off order.For more information on sending one-off payments, please see Ravelin’s guide on Requesting Recommendations.
Below are questions the Ravelin integrations team is likely to ask during discovery and setup:
customerId used or is a new one generated?Was this page helpful?