SugarCRM is a comprehensive customer relationship management product, from sales and marketing to service and support. It is used by companies of all sizes, across all industries.
Stripe is an online payment processing platform that allows businesses to send and receive payments over the internet. From start-ups to Fortune 500 companies, every business can build a faster, more modern payment experience.
Stripe IntegrationsIt's easy to connect SugarCRM + Stripe without coding knowledge. Start creating your own business flow.
Triggers when you add a new case
Triggers when you add a new contact
Triggers when you add a new lead
Triggers when you add a new opportunity
Triggers when you add a new task
Triggers when you add a new user
Triggers the moment a charge is made on someone's credit card.
Triggers the moment you add a new customer is added.
Triggers every time a new event like a dispute, subscription, or transfer is added.
Triggers when a new invoice is created (supports line items).
Triggers upon creation of a new order.
Create a new case
Creates a new customer.
Creates a new sale.
Update Customer.
(30 seconds)
(10 seconds)
(30 seconds)
(10 seconds)
(2 minutes)
SugarCRM is a Customer Relationship Management software that is used for managing customer information and allowing them to make payments online. SugarCRM has many features, such as email management, phone log, etc. SugarCRM is ideal for small companies.
Stripe is a payment gateway that allows the user to accept payments online at a low cost. Stripe’s website says it can be used with any programming language. Stripe is ideal for medium-sized businesses.
In order to integrate Stripe with SugarCRM, we will have to create a plugin for Stripe. We will use PHP as our programming language. This would be the code for the plugin:
<?php $key = "insert your Stripe secret key here"; $secret = "insert your Stripe secret key here"; $publishable = "insert your Stripe publishable key here"; $private = "insert your Stripe private key here"; $url = "https://api.stripe.com/v1/transactions"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFIER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, "<?" . http_build_query('firstName=John&lastName=Smith&[email protected]&sourceId=4f79dde5&expiresAt=1508700758&amount=100'. . "&customer=1234567890&customerId=" . $_COOKIE['customer'] . "&card[number]=4961939292106122587387537761058&card[month]=12&card[year]=2021&merchantId=1234ABCD" . "&ipAddress=" . $_SERVER['REMOTE_ADDR'] . "&cvv=" . $_SERVER['HTTP_X_CVV']); echo (json_encode($ch)); ?> </body> </html> <html> <body> <h2 align="center">Payment Successful</h2> <p align="center"><img src="http://demo.sugarcrm.com/docs/documents/devguide/images/thankyou.png" alt="thankyou.png" />Thank you for your payment.</p> </body> </html>
This code uses cURL to call Stripe’s API. We also need to create an app on Stripe’s website and then register this app on SugarCRM’s website in order to get a secret key from SugarCRM. We also need to obtain a publishable key from Stripe and a private key from Stripe. This will allow the integration of Stripe with SugarCRM to work correctly. The code for creating an app on Stripe’s website is shown below:
We will also need to put in place a redirect so that when customers go to the website they are redirected to the payment page afterward. We will do this by using the fplowing code in the payment page:
The process to integrate SugarCRM and Stripe may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.