Mule Payment Services

January 25 2011


If you are selling a product or a service online, chances are you’ve had to integrate with any number of payment services available today. As any application developer will tell you, the integration with the payment system is only one step of an order process.

Mule Payment Services makes it easier to use payment services from different providers. We started with connectors to Authorize.Net and CyberSource (both companies owned by Visa). is a payment service which is popular with smaller merchants while CyberSource is more popular with medium to enterprise size customers. Between the two payment processors they serve well over 300,000 merchants. We are working on integration with a number of other payment services including PayPal.

Mule uses Mule so each payment provider can easily plugged into payment flows. For example to make a payment using

<auth:config merchantLogin="<YOUR MERCHANT LOGIN>" 
    merchantTransactionKey="<YOUR MERCHANT TRANSACTION KEY>" 
    name="auth" testMode="true"/>

<flow name="payment">
    <auth:authorization-and-capture cardNumber="370000000000002" 
        expDate="12/12" amount="400"/>

Note that in a real scenario the credit card number, expiry and amount can all be read from a request to the flow.

Of course payments are one piece of the puzzle. Once the payment is successful the customers information then needs to also be entered into a CRM system like SalesForce along with the creation of an invoice. Mule is the perfect platform to help with all of these use cases. Mule Payment Services provides a simple interface for processing payments which can then be part of a Mule flow.

Mule Payment Services

Mule Payment Services

To learn More about Mule Payment Services we are hosting a Webinar on Wednesday (Tomorrow) at 10am PST which you can register for here. Please join me to see how to build a purchase flow using Mule Payment Services, Salesforce and Gmail integration.

There is a Mule Store example that makes use of Authorize.Net, SalesForce and our AJAX-Push transport. Also there are examples of how to use each payment connector in the documentation: Mule Cloud Connect.

We'd love to hear your opinion on this post

3 Responses to “Mule Payment Services”

  1. nice post, it is useful and helpful, thanks for sharing this

  2. Hi Roko,

    Is security ( message encryption etc.) inherently built into these Payment Services or does it have to be configured? And does it have support for transactions ( roll back in case an order fails) ?

    • Hi Varun, Communication from Mule to the payment gateways like Authorize.Net and CyberSource is secure. However, it is up to the user to make sure to use a secure transport like HTTPS when communicating from their client to the Mule Server. As for supporting transactions the underlying communication to the payment gateways does not support transactions but using Mule and the default exception strategy it is possible to see if the payment was processed and if so then to void or cancel the payment if something else was to fail in the flow.