<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: StellarPay</title>
    <description>The latest articles on DEV Community by StellarPay (@stellarpay).</description>
    <link>https://dev.to/stellarpay</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2697052%2F9258b7a3-3b17-47b6-9694-8fc93420a47c.png</url>
      <title>DEV Community: StellarPay</title>
      <link>https://dev.to/stellarpay</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stellarpay"/>
    <language>en</language>
    <item>
      <title>Better Payments with Stellar Pay</title>
      <dc:creator>StellarPay</dc:creator>
      <pubDate>Tue, 21 Jan 2025 18:40:45 +0000</pubDate>
      <link>https://dev.to/stellarpay/better-payments-with-stellar-pay-3nm1</link>
      <guid>https://dev.to/stellarpay/better-payments-with-stellar-pay-3nm1</guid>
      <description>&lt;h2&gt;
  
  
  What is Stellar Pay and how does it work?
&lt;/h2&gt;

&lt;p&gt;&lt;iframe src="https://player.vimeo.com/video/1049026935" width="710" height="399"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Template
&lt;/h2&gt;

&lt;p&gt;Here is the template for the &lt;a href="https://marvelous-tartufo-2b7ab9.netlify.app/templates/barber" rel="noopener noreferrer"&gt;Barber Shop&lt;/a&gt; example.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;title&amp;gt;Barber Shop | São Paulo&amp;lt;/title&amp;gt;
        &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /&amp;gt;
        &amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/stellar-sdk/12.3.0/stellar-sdk.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/stellar-freighter-api/3.0.0/index.min.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;script src="https://marvelous-tartufo-2b7ab9.netlify.app/src/js/stellar-pay.min.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;link
            rel="stylesheet"
            type="text/css"
            href="https://marvelous-tartufo-2b7ab9.netlify.app/src/css/stellar-pay.css"
        /&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body class="stellar-pay-layout"&amp;gt;
        &amp;lt;img src="https://marvelous-tartufo-2b7ab9.netlify.app/assets/images/barber.png" class="stellar-pay-header" /&amp;gt;
        &amp;lt;h1&amp;gt;Regular Haircut&amp;lt;/h1&amp;gt;
        &amp;lt;p&amp;gt;Barber Shop São Paulo&amp;lt;/p&amp;gt;

        &amp;lt;div class="stellar-pay"&amp;gt;
            &amp;lt;div class="shortcode"&amp;gt;
                [stellar_pay amount="5" currency="USDC" title="Pay" network="testnet" memo="Barber Sao Paulo"
                wallet="GB....XYZ"]
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simply remove the 'amount' attribute from the shortcode if you want to show an input field for the amount next to the payment button.&lt;/p&gt;

&lt;p&gt;More templates can be found &lt;a href="https://marvelous-tartufo-2b7ab9.netlify.app/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Payments
&lt;/h2&gt;

&lt;p&gt;Stellar Pay supports payments with XLM, USDC and EURC. The wallet you use needs to have a trustline for receiving USDC and EURC. On desktop devices you can pay using the &lt;a href="https://www.freighter.app/" rel="noopener noreferrer"&gt;Freighter&lt;/a&gt; browser extension and on mobile phones you can pay with &lt;a href="https://lobstr.co/" rel="noopener noreferrer"&gt;LOBSTR&lt;/a&gt;, or possibly with other wallets that support universal links.&lt;/p&gt;

&lt;h2&gt;
  
  
  QR Code Generator
&lt;/h2&gt;

&lt;p&gt;To make it easier to pay with mobile phones, we also created a &lt;a href="https://marvelous-tartufo-2b7ab9.netlify.app/qr" rel="noopener noreferrer"&gt;QR Code Generator&lt;/a&gt;, which converts any URL to a QR code. You can also use it to generate dynamic payment links for any amount of XLM, USDC or EURC.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI integration and hosting
&lt;/h2&gt;

&lt;p&gt;You can ask ChatGTP or DesignerGPT (an extension for ChatGPT) to make edits to the code. DesignerGPT can host the code for you on Replit. Alternatively, you can host the file yourself (for free). For example on &lt;a href="https://www.netlify.com" rel="noopener noreferrer"&gt;Netlify&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Developers and website owners
&lt;/h2&gt;

&lt;p&gt;The Stellar Pay technology can be integrated in any existing website. The possibilities are endless. Simply add the scripts and the shortcode from the template to your website and you're done!&lt;/p&gt;

&lt;h2&gt;
  
  
  Final notes
&lt;/h2&gt;

&lt;p&gt;This work is a proof-of-concept only. It was build to demonstrate that our idea is &lt;strong&gt;practical&lt;/strong&gt; and &lt;strong&gt;real-world applicable&lt;/strong&gt;. It was tested on Stellar Test Net only. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://marvelous-tartufo-2b7ab9.netlify.app/templates/coffee" rel="noopener noreferrer"&gt;☕ Buy me a coffee (on testnet)&lt;/a&gt;&lt;/p&gt;

</description>
      <category>stellar</category>
      <category>chatgpt</category>
      <category>designergpt</category>
    </item>
  </channel>
</rss>
