Skip links

Cybersource Integration with Salesforce

Industry

Financial Services

Products

Sales Cloud

Service

Integration

Customer

An international financial services company and a long-term ENWAY customer. This case covers its UK branch, which provides corporate vehicle payments to business clients.

Challenge

The company’s order forms are built in Salesforce: a web form the client completes, and an internal form a sales rep completes for them. Both end at a payment step.

There are three options in the payment logic: an agreement to weekly collection from the client’s bank account; that agreement plus a refundable deposit; or a stored payment card. Which option a client is offered depends on the Customer’s own business logic and on the credit bureau reports pulled during the order. This case covers the stored payment card. The bank collection agreement and the deposit are covered in a separate case study.

The Customer came to ENWAY to capture a card on the Salesforce order form, confirm it works, and keep it chargeable without holding the card number in Salesforce, plus billing logic in Salesforce that decides per transaction whether to invoice it or charge the card.

Solution

ENWAY integrated Cybersource, Visa’s payment and fraud management platform, with Salesforce over its REST API. No managed package is involved: the callouts are built in Apex in the branch’s own org.

  1. Added card capture to the payment page of both Salesforce order forms, passing the details from the form straight to the gateway.
  2. Verified the card by charging £1 and refunding it immediately, so the client is not out of pocket.
  3. Stored the card as a gateway token against the Salesforce account record. Salesforce holds the token and the last four digits, never the card number.
  4. Recorded the requested limit alongside the limit the credit bureau recommends, both on the Salesforce account, and ran billing on the approved figure.
  5. Invoiced transactions within the approved limit, then switched the account to the stored card once that limit was used up. The switch is handled in Salesforce.
  6. Screened the capture and the later charges through Cybersource’s fraud management tools.
  7. Logged every authorization, refund, charge, and decline on the Salesforce record.

Results

The Customer can now open an account at whatever limit is approved , including zero, so an order can be accepted on flexible terms that suit the client rather than one fixed set of requirements for everyone.

Having a workable option to offer, instead of a single template, is what keeps clients from ordering elsewhere.

Spending past the approved limit goes to a card already on file, so the invoiced balance stays inside that figure. Client debt is capped by design rather than building up and being chased afterwards, and the Customer sees the difference in its own financial results.

Let’s talk about your Salesforce project

Get in Touch
WhatsApp Us