<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Miguelangelescorche on Medium]]></title>
        <description><![CDATA[Stories by Miguelangelescorche on Medium]]></description>
        <link>https://medium.com/@miguelangelescorche?source=rss-9fb22ab8cc0e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7Jb7TF8YhtRTWmsa.jpg</url>
            <title>Stories by Miguelangelescorche on Medium</title>
            <link>https://medium.com/@miguelangelescorche?source=rss-9fb22ab8cc0e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:00:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@miguelangelescorche/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[how to use vue-paypal-checkout in SSR Nuxtjs]]></title>
            <link>https://miguelangelescorche.medium.com/how-to-use-vue-paypal-checkout-in-ssr-nuxtjs-54242766dcb7?source=rss-9fb22ab8cc0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/54242766dcb7</guid>
            <category><![CDATA[paypal]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[nuxtjs]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Miguelangelescorche]]></dc:creator>
            <pubDate>Fri, 19 Mar 2021 21:54:10 GMT</pubDate>
            <atom:updated>2021-03-19T21:54:10.332Z</atom:updated>
            <content:encoded><![CDATA[<p>hello, if your reading this is because you not want to lose the opportunities of using SSR in your Nuxtjs project and also you want to process your payments much easy with Paypal.</p><p>Alright so the common error here is that yo will get and error about not having the property window (“Window is not defined”) if you use the Paypal Npm in SSR to solve this you have to do this step by step.</p><ol><li>After you install <a href="https://www.npmjs.com/package/vue-paypal-checkout">https://www.npmjs.com/package/vue-paypal-checkout</a> you have to create a plugin in the plugin folder of you nuxtjs project (if you not have a plugin folder create one in the root folder) name the plugin as “paypal.client.js” and inside you have to copy this.</li></ol><p>import Vue from ‘vue’;</p><p>import PayPal from ‘vue-paypal-checkout’;</p><p>Vue.component(‘paypal-checkout’, PayPal);</p><p>2. After that you have to import the plugin in the nuxt.config.js like this</p><p>plugins: [</p><p>‘~plugins/axios’,</p><p>{ src: ‘~/plugins/paypal.client.js’ }</p><p>],</p><p>3. you have to import also the Paypal npm in the build</p><p>build: { vendor: [‘vue-paypal-checkout’]},</p><p>4.Then you have to go to your page of component that it will use the Paypal checkout and in the HTML part use it like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*MimnkIN4aDSUYTsemN9ajg.png" /></figure><p>5. and in the script you have to import the Paypal checkout with a mounted method</p><p>mounted() {</p><p>if (process.client) {<em>const</em> Paypal = () <em>=&gt;</em> import(‘vue-paypal-checkout’)}},</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*YFTJekYCUzyMT1Wg2abHcQ.png" /></figure><p>and that&#39;s its. i hope i help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54242766dcb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>