Posts

Charts in Lightning component

Image
In one of the recent Salesforce1 Mobile app project , we need to display charts in lightning components . I researched some of the available options to accomplish same , and here i  landed with some of the Javascript Charting Libraries . JustGuage  (To draw Guage Chart ) ChartJS      (To draw rest of the charts ) Here are the few steps to include chart in lightning components . 1. Download resource file and create static resources . 2.a. Include static resource for Guage Chart in lightning components . <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >         <ltng:require scripts="{!join(',',                                 $Resource.JustGuage   + '/justgage-1.2.2/raphael-2.1.4.min.js',                                 $Resource.JustGu

Salesforce To Authorize.Net Integration

Image
A Little Background About This Post: In last 2 years working as independent consultant/developer , I got salesforce to Authorize.net integration request some 7-8 times . This is one of the popular integration these days . I worked over this piece of integration and thought of sharing this with community . General Requirements : 1. We would like our customers to pay via credit card ,bank(ACH) details automatically . 2. We would like to send them a payment link at a frequency, customers can open link and can pay us . 3. We would like to track transactions as well as payment requests . 4. We do not want to store credit card info within salesforce , it should be PCI DSS compliant . Authorize.net Account : Create a authorize.net developer account and create a app to get API credentials . Payment Page Screens : Here we have payment screens for creit card as well as e-check . Code Samples : Here we have visualforce page as well as apex classes for

Salesforce Google Analytics Integration

Image
A Little Background About This Post: In my recent project with one of my client , they came up with salesforce to Google Analytics integration as their challenge as  they were interested to see all page stats in salesforce itself . I worked over this piece of integration and thought of sharing this with community . Here we go for step by step guide . Part 1:  Create an oAuth ID (Other) Go to:  https://console.developers.google.com Create a new project Enable the “Analytics API”New project creation Go to credentials Create “oAuth Client ID” Configure (Other) and save Give it a name Save the client ID and client secret Download the JSON Part 2:  Compile the following URI call from the JSON  https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/analytics&redirect_uri=YOUR_REDIRECT_URI_HERE&response_type=code&client_id=YOUR_CLIENT_ID_HERE ·          YOUR_REDIRECT_URI_HERE: Site which need to be tracked

Salesforce Shopify Integration

Image
A Little Background About This Post: In my recent project with one of my client , they came up with salesforce to shopify integration as their challenge as  there was lot of manual work involved from shofipy to salesforce . I worked over this piece of integration and thought of sharing this with community . What they use shopify for ? Well here is brief introduction for shopify. Shopify is a complete ecommerce solution that allows you to set up an online store to sell your goods. It lets you organize your products, customize your storefront, accept credit card payments, track and respond to orders — all with a few clicks of the mouse. Happy To See: I had look into Shofipy API and was happy to see that. 1.        It provide beautiful Rest API. 2.        It uses OAuth 2.0 for authorization and authentication. Tool Needed For Demonstration : 1.        Salesforce Developer Org . 2.        Shofipy Developer Account 3.        Shofipy Trial Account