{"id":67149,"date":"2016-12-09T05:59:50","date_gmt":"2016-12-09T05:59:50","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=67149"},"modified":"2017-04-22T10:44:19","modified_gmt":"2017-04-22T10:44:19","slug":"create-payment-modules-prestashop-17","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/","title":{"rendered":"how to create payment modules in Prestashop 1.7"},"content":{"rendered":"<p class=\"brush:php\">In this blog, we will learn how to develop\u00a0Payment modules in Prestashop 1.7\u00a0.<\/p>\n<p>In Prestashop v1.6 we use hook <strong>displayPayment<\/strong> to show payment option of our payment module on the checkout page. But now it won&#8217;t work in Prestashop 1.7 .<\/p>\n<p>Now you have to use<strong>\u00a0<\/strong>hook<strong>\u00a0paymentOptions<\/strong> in place of hook<strong>\u00a0displayPayment<\/strong>\u00a0to show your payment module&#8217;s payment option.<\/p>\n<p>In\u00a0hook<strong> paymentOptions\u00a0<\/strong>we can set our payment module&#8217;s form and other details like the example below &#8211;<\/p>\n<pre class=\"brush:php\">public function hookPaymentOptions()\r\n{\r\n    $newOption = new PaymentOption();\r\n    $paymentForm = $this-&gt;fetch('module:mymodule\/views\/templates\/hook\/payment.tpl');\r\n    $newOption-&gt;setCallToActionText($this-&gt;trans('Pay by MyModule', array(), 'Modules.MyModule.Shop'))\r\n        -&gt;setForm($paymentForm)\r\n        -&gt;setLogo(_MODULE_DIR_.'mymodule\/views\/img\/logo-mymodule.png')\r\n        -&gt;setAdditionalInformation('your additional Information')\r\n        -&gt;setAction($this-&gt;context-&gt;link-&gt;getModuleLink($this-&gt;name, 'payment'));\r\n    return [$newOption];\r\n}<\/pre>\n<pre class=\"brush:php\"><\/pre>\n<p>To show form when\u00a0clicking on the checkbox of your payment option,<\/p>\n<p>use <strong>setForm($form)<\/strong> method of <strong>paymentOption<\/strong> class<\/p>\n<p>Here\u00a0<strong>$form <\/strong>is<strong>\u00a0<\/strong>custom HTML to display e.g. a form where a customer will\u00a0fill his payment details. The HTML must not contain a submit button, as \u00a0the Core will submit the form.<\/p>\n<p><strong>Note &#8211; The HTML must not contain a submit button, as \u00a0the Core will submit the form.<\/strong><\/p>\n<p>You also can use other options provided by PrestaShop. Some are described below-<\/p>\n<p><strong>setForm($form)<\/strong> \u2013 To set form on checking your payment\u00a0option.<\/p>\n<p><strong>setLogo($logo)<\/strong>\u00a0\u2013 To set your payment logo. $logo is the path of your logo image.<\/p>\n<p><strong>setAdditionalInformation($callToActionText<\/strong>) \u2013 If your module need any additional information. $callToActionText is the path of your tpl file contains additional information about your payment option.<\/p>\n<p><strong>setAction()<\/strong> \u2013 Link to which you payment form will be submitted.<\/p>\n<p><strong>Note :<\/strong>\u00a0Please\u00a0have a look to <strong>prestashop1.7\/src\/Core\/Payment\/paymentOptions.php<\/strong> class file for payment options provided by Prestashop.<\/p>\n<p><strong>For your JavaScript\u00a0validations, you can use:<\/strong><\/p>\n<pre class=\"brush:php\">$(\u2018#payment-confirmation &gt; .ps-shown-by-js &gt; button\u2019).click(function(e) {\r\n    var myPaymentMethodSelected = $(\u2018.payment-options\u2019).find(\u201cinput[data-module-name=\u2019myModuleName\u2019]\u201d).is(\u2018:checked\u2019);\r\n    \r\n    if (myPaymentMethodSelected){\r\n    \/\/Your validations or other checks.\r\n    }\r\n    \r\n});<\/pre>\n<pre class=\"brush:js\"><\/pre>\n<p>You can take a reference for <strong>paymentReturn<\/strong>\u00a0hook code from the below code as some keys are changed in the parameter $params of this hook &#8211;<\/p>\n<pre class=\"brush:php\">public function hookPaymentReturn($params) \r\n{ \r\n    if (!$this-&gt;active) {\r\n        return;\r\n    }\r\n    if (!isset($params['order']) || ($params['order']-&gt;module != $this-&gt;name)) {\r\n        return false;\r\n    }\r\n    if (isset($params['order']) &amp;&amp; Validate::isLoadedObject($params['order']) &amp;&amp; isset($params['order']-&gt;valid)) {\r\n        $this-&gt;smarty-&gt;assign(array(\r\n            'id_order' =&gt; $params['order']-&gt;id,\r\n            'valid' =&gt; $params['order']-&gt;valid,\r\n            ));\r\n    }\r\n    if (isset($params['order']-&gt;reference) &amp;&amp; !empty($params['order']-&gt;reference)) {\r\n        $this-&gt;smarty-&gt;assign('reference', $params['order']-&gt;reference);\r\n    }\r\n    $this-&gt;smarty-&gt;assign(array(\r\n        'shop_name' =&gt; $this-&gt;context-&gt;shop-&gt;name,\r\n        'reference' =&gt; $params['order']-&gt;reference,\r\n        'contact_url' =&gt; $this-&gt;context-&gt;link-&gt;getPageLink('contact', true)\r\n        ));\r\n    return $his-&gt;fetch('mymodule\/views\/templates\/hook\/payment_return.tpl'); \r\n}<\/pre>\n<p class=\"brush:php\">You can take a reference for payment_return.tpl which is returned from <strong>hookPaymentReturn<\/strong> &#8211;<\/p>\n<pre class=\"brush:php\">{if $valid == 1}\r\n \/\/ write your code what you want to show to the customer if order is valid.\r\n{else}\r\n \/\/ write your code what you want to show to the customer if some error occurred while creating order.\r\n{\/if}<\/pre>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will learn how to develop\u00a0Payment modules in Prestashop 1.7\u00a0. In Prestashop v1.6 we use hook displayPayment to show payment option of our payment module on the checkout page. But now it won&#8217;t work in Prestashop 1.7 . Now you have to use\u00a0hook\u00a0paymentOptions in place of hook\u00a0displayPayment\u00a0to show your payment module&#8217;s payment <a href=\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":83,"featured_media":67122,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[4106,4105,1042,4104,2065,4108,4109,4107],"class_list":["post-67149","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-prestashop","tag-create-payment-modules","tag-hookpaymentoption","tag-payment","tag-payment-module","tag-prestashop","tag-prestashop-1-7-payment","tag-prestashop-1-7-payment-modules","tag-prestashop-payment-modules"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>how to create payment modules in Prestashop 1.7<\/title>\n<meta name=\"description\" content=\"In this blog, you will learn how to create payment modules in Prestashop version 1.7 and which new hook paymentOption and methods you have to use.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"how to create payment modules in Prestashop 1.7\" \/>\n<meta property=\"og:description\" content=\"In this blog, you will learn how to create payment modules in Prestashop version 1.7 and which new hook paymentOption and methods you have to use.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-09T05:59:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-22T10:44:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sumit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sumit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\"},\"author\":{\"name\":\"Sumit\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e45ec35749afa62aa598a5e1766d2b9\"},\"headline\":\"how to create payment modules in Prestashop 1.7\",\"datePublished\":\"2016-12-09T05:59:50+00:00\",\"dateModified\":\"2017-04-22T10:44:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\"},\"wordCount\":292,\"commentCount\":15,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png\",\"keywords\":[\"create payment modules\",\"hookPaymentOption\",\"payment\",\"payment module\",\"prestashop\",\"prestashop 1.7 payment\",\"prestashop 1.7 payment modules\",\"prestashop payment modules\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\",\"url\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\",\"name\":\"how to create payment modules in Prestashop 1.7\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png\",\"datePublished\":\"2016-12-09T05:59:50+00:00\",\"dateModified\":\"2017-04-22T10:44:19+00:00\",\"description\":\"In this blog, you will learn how to create payment modules in Prestashop version 1.7 and which new hook paymentOption and methods you have to use.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"how to create payment modules in Prestashop 1.7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e45ec35749afa62aa598a5e1766d2b9\",\"name\":\"Sumit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0e50336dc34ad31135238f210897d19d09edbdb9be2f7974a85de3ecdef16bf6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0e50336dc34ad31135238f210897d19d09edbdb9be2f7974a85de3ecdef16bf6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sumit\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/sumit201\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"how to create payment modules in Prestashop 1.7","description":"In this blog, you will learn how to create payment modules in Prestashop version 1.7 and which new hook paymentOption and methods you have to use.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/","og_locale":"en_US","og_type":"article","og_title":"how to create payment modules in Prestashop 1.7","og_description":"In this blog, you will learn how to create payment modules in Prestashop version 1.7 and which new hook paymentOption and methods you have to use.","og_url":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-12-09T05:59:50+00:00","article_modified_time":"2017-04-22T10:44:19+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png","type":"image\/png"}],"author":"Sumit","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sumit","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/"},"author":{"name":"Sumit","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e45ec35749afa62aa598a5e1766d2b9"},"headline":"how to create payment modules in Prestashop 1.7","datePublished":"2016-12-09T05:59:50+00:00","dateModified":"2017-04-22T10:44:19+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/"},"wordCount":292,"commentCount":15,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png","keywords":["create payment modules","hookPaymentOption","payment","payment module","prestashop","prestashop 1.7 payment","prestashop 1.7 payment modules","prestashop payment modules"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/","url":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/","name":"how to create payment modules in Prestashop 1.7","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png","datePublished":"2016-12-09T05:59:50+00:00","dateModified":"2017-04-22T10:44:19+00:00","description":"In this blog, you will learn how to create payment modules in Prestashop version 1.7 and which new hook paymentOption and methods you have to use.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/Prestashop-Code-Snippet-1.7-1.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/create-payment-modules-prestashop-17\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"how to create payment modules in Prestashop 1.7"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e45ec35749afa62aa598a5e1766d2b9","name":"Sumit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0e50336dc34ad31135238f210897d19d09edbdb9be2f7974a85de3ecdef16bf6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e50336dc34ad31135238f210897d19d09edbdb9be2f7974a85de3ecdef16bf6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sumit"},"url":"https:\/\/webkul.com\/blog\/author\/sumit201\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/67149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/83"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=67149"}],"version-history":[{"count":30,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/67149\/revisions"}],"predecessor-version":[{"id":81269,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/67149\/revisions\/81269"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/67122"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=67149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=67149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=67149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}