How to add paytm payment gateway in wordpress website.

Paytm popularity is increasing day by day. Now paytm is offering a paytm payment gateway which anyone can add in his/her website very easily.

Recently I have added this payment gateway in my client’s website www.sofiyafashion.com.

Points to be remember:-

Before adding paytm payment gateway in your WordPress website you must have to complete your documents’ paytm verification.

Also, I encourage you to go through below information which is mandatory to be updated on your Website.

Any delay in updating any of the policies can lead to delay in approving your application.

Basic Requirements for Website Verification:

1. About us
2. Contact Us (Company Name, Address, Contact numbers, Email Ids)
3. Product / Services Catalog 4. Customer Checkout Process Flow – end to end5. Privacy Policy (Click here to download template)
6. Terms & Conditions (Click here to download template)
7. Return, Refund, Exchange & Cancellation policy (Click here to download template)

There are following steps to add paytm payment gateway in wordpress website:

  1. Upload the latest version of WooCommerce plugin, install it & activate it.
  2. Download the latest paytm plugin from chere & Copy the folder named ‘paytm‘ into the directory location /wp-content/plugins/. Or, you may choose to upload the paytm folder via the add new plugin in WordPress Admin panel.
  3. Activate the plugin through the left side ‘Plugins’ menu in WordPress.
  4. Visit the Woo-Commerce => settings page, and click on the Checkout tab.
  5. Scroll down the Checkout page and go to the setting option of paytm under “Gateway Display”.
  6. Click on paytm to edit the settings. If you do not see paytm in the list at the top of the screen make sure you have activated the plugin in the WordPress Plugin Manager.
  7. Save the below configuration
  8. Now you can see paytm in your payment option.
  9. Save the below configuration.
  10. Your Woo-commerce plug-in is now installed. You can accept payment through Paytm.
paytm-wordpress-plugin-settings-phpglossary

Still if you are facing any issue in adding paytm payment gateway in your wordpress website, you can mail at devsupport@paytm.com. Paytm dev support is very good as I have experienced.

How to calculate number of days in a month of a specified year

To calculate how many days in a particular month of a year PHP provides in build function cal_days_in_month() function returns the number of days in a month for a specified year and calendar.

The cal_days_in_month() function accepts three parameters :

(1) Calendar: The name of the calendar for days calculation.
(2) Month: Specifies number of a particular month for days calculation.
(3) Year: Specifies year of a particular calendar.

Complete Syntax : cal_days_in_month(calendar,month,year);

Continue reading How to calculate number of days in a month of a specified year

How to use array_filter() function in php ?

The array_filter() function use to filters the elements of an array using a callback function.

This function accepts two parameters and one flag. The first parameter is required which is to be an array, the second parameter is optional which is to be a callback function if passed and the last flag is also optional. The flags names are ARRAY_FILTER_USE_KEY and ARRAY_FILTER_USE_BOTH. By default array_filter() function uses ARRAY_FILTER_USE_KEY flag to filter the array. The flags were added in PHP version 5.6.0.

Continue reading How to use array_filter() function in php ?

What is usort() function in php & how to use it ?

The usort() function sort an array by values using a user-defined comparison function. It accepts two parameters, the first parameter must be an array to sort and the second parameter must be a string that defines a function. The function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. Note that before PHP 7.0.0 this integer had to be in the range from -2147483648 to 2147483647.

Continue reading What is usort() function in php & how to use it ?

array_push (arrName, varName) function in php

array_push() function use an array as a stack, and it pushes the passed variables at the end of the array. The length of the array increases automatically by the number of variables pushed into the array_push function. It accepts two parameters, the first parameter to be an array and the second parameter can be any type of value.

Continue reading array_push (arrName, varName) function in php