How to integrate CyberSource payment gateway with CakePHP 2.*

Author - Webner
|
0 Comments
|

Steps to integrate CyberSource payment gateway with CakePHP 2.*:

1. Download zip file of CyberSource library from “https://github.com/chrismeller/cybersource”.

2. Extract cybersource-master folder into cakephp vendors folder.

3. Create tests/config.php for test transaction with code and add credentials like below:

<?phpRead more…

Handling attachments in IndependentSoft MSG.NET package

Author - Harleen Kaur
|
0 Comments
|

Handling attachments and Embedded content in Body of the Msg file read by IndependentSoft MSG.NET package

As we know that the MSG.NET package by IndependentSoft is used for creating, parsing, reading and converting the Msg email without requiring Outlook to be Installed on System.

The link http Read more…

WordPress | Building custom wordpress theme options panel

Author - Komal
|
0 Comments
|

With each theme we install, we get its default options panel that provides settings for the theme like color etc. But sometimes there can be a requirement of some more options that are not already in theme’s options panel.  So, in that case, wordpress provides the facility to add Read more…

Integrate Google Analytics with website

Author - Manju Kashyap
|
0 Comments
|

How to integrate Google Analytics with website and enable settings in Google Analytics for tracking various user activities on the website.

When we want to monitor visitors’ activity on our website in Google Analytics for that we need to add a script provided by Google Analytics on every page of Read more…

CakePHP | How to change Epoch timestamp (unix timestamp) timezone in cakephp find query

Author - Kailash
|
0 Comments
|

Suppose we have a table cake_test with a column named modified that contains epoch values.

CakePHP code:
$options = array (
‘fields’ => array (
“modified”,
“to_timestamp(modified) as New__original”,
“to_timestamp(modified) AT TIME ZONE ‘America/Denver’ as New__converted”
)
);
$result = $this->CakeTest->find ( ‘all’, $options );

In the above query we have Read more…

Salesforce | Fetch more than 2000 records using REST asynchronously in C#

Author - Neha Mishra
|
0 Comments
|

Salesforce gives us a limit of 2000 records to fetch from it using REST calls. But sometimes we need to get all the records from Salesforce. In Salesforce, there is a limit of API calls. By default, it gives 15,000 for a sandbox. Making salesforce call, again and again Read more…

MySQL | How to convert row values into column names

Author - Anjana
|
0 Comments
|

Sometimes requirement arises to display a field value as column name in output and adjacent values in the same row below it as its values.

Suppose I have a table “students” with marks of each student in different subjects. Each student may not appear in every subject:

students

We want Read more…

AWS | How to auto generate S3 Policy

Author - Navneet Kashyap
|
0 Comments
|

Steps to auto generate AWS S3 Policy that you can use to provide access rights according to requirement:

→ Open S3 from AWS console:

1. Click on AWS bucket
2. Now, click properties
3. Click on Add bucket policy:

4. Now, Click on AWS Policy Generator:

Else use the Read more…

Java | Stripe – Handling expired credit cards

Author - Rita
|
0 Comments
|

Description:
We are registering our customers using Stripe payment gateway where we are storing customer card details. We are doing recurring payment for customers periodic billing cycle. But if customer’s card expires or card number changes, we will not get any information about that and our billing cycle will Read more…

More about Salesforce Customer Portal

Author - Sahil
|
0 Comments
|

How to set logout URL for customer portal:

-> Go to Quick find box and write customer portal settings.
-> Now, open the portal that you want to edit.
-> Click on the edit button:

-> Enter the URL under the portal default setting→logout URL.

Note Read more…

Salesforce | Display PHP Page in the Salesforce Tab

Author - Deepika
|
0 Comments
|

Step to insert PHP Page in Salesforce:

1. Go to setup->Create->Tabs in Salesforce:

2. Under Web Tab, click on new button. Now you can select the Page layout you want to set – full page width or 2 columns with Salesforce.com slider:

3. Fill Read more…

AngularJS 2 with Node.js

Author - Neelam
|
0 Comments
|

AngularJS 2 is the most popular Framework of Javascript which is used to build Web/Mobile applications in html and javascript. AngularJS 2 has the abilities to build apps for web, mobile web, native mobile and native desktop and it has features like Web Workers and server-side rendering.

Read more…

SecurityError: Blocked a frame with origin from accessing a cross-origin frame

Author - Kiran Preet
|
0 Comments
|

Error: Blocked a frame with origin “http://xxx.xxx.xxx.xxx” from accessing a frame with origin “http://xxxxx:xxx”. Protocols, domains, and ports must match.

Scenario: We have a cakephp website. In one webpage say “Parent Page” of this website we have used iframe to Read more…

Zoho | How to download attachments for a contact from Zoho using Cakephp

Author - Deepika
|
0 Comments
|

To download attachments from Zoho CRM from a module, like Contacts, fetch detail of all the attachments related to that module, then download each attachment by its attachment id using download file API in Zoho and finally convert blob to the image file.

For Examle: Download attachment from Read more…

CakePHP | Call to a member function schema() on a non-object

Author - Manju Kashyap
|
0 Comments
|


Error:
Call to a member function schema() on a non-object
File: /home/user/git/!defaultRepo!/Appname/lib/Cake/Model/Datasource/Database/Postgres.php

Line: 404

Description: I was trying to execute the following cake query to fetch the records:
$records = $this->find ( ‘all’, array Read more…

Stripe Signature Verification for Webhook urls using Spring

Author - Rita
|
0 Comments
|

Stripe payment gateway provides different webhook events like customer_created, customer_source_updated, customer_deleted and so on. By setting up our webhook urls to the events provided by Stripe, we can capture the Stripe event requests and can write our own customer code. Now there is a problem with security. If our url Read more…

Regular expressions to allow UTF characters through Jquery

Author - Parminder Kaur
|
0 Comments
|

Regular expressions provide a powerful way of adding validations to the web forms.

To allow UTF encoded characters (Letters) either UTF -8 or UTF -16 like Á á É é Í ÑÓ ¿ € ₧ å ∫ ç ∂´ƒ ©˙ ∆˚ ¬µ ˜ø π œ ® ß † ¨√ ∑ ≈ ¥ Ω ¡™ £ ¢¡™£¢∞§ ¶

Use Regex expression \p{L}

Here L stands for ‘Letter’ from any language. It includes all the utf encoded characters from all Read more…

Ubuntu | How to automatically mount the encrypted drive at startup of system?

Author - Navneet Kashyap
|
0 Comments
|

Solution: When you have a drive which is encrypted and password protected and you want the drive to be mounted automatically at startup below are the steps that you can use:

Step 1. Open the encrypted drive as you usually do and mount it to any location.

Read more…

Selenium | Unable to launch the latest Firefox browser 54.0 with Selenium 3

Author - Namisha
|
0 Comments
|

Problem: I was unable to launch the latest Firefox browser 54.0 with Selenium 3

Solution: Earlier I was using the Firefox version 43.0 and I was able to launch the Firefox properly with my selenium script. But recently I have updated my Firefox browser from 43 to latest Read more…

WordPress | Dynamic database prefix and wpdb

Author - Komal
|
0 Comments
|

SOLVING DATABASE TABLE PREFIX ISSUE IN WORDPRESS

When we create WordPress plugins then we generally need to create new tables for storing some data. As plugin should generally work on any WordPress site so it is important to keep in mind that the queries must work on all Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 Next page ›