<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — New FrontAccounting Payment Integration Module]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10512</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10512&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in New FrontAccounting Payment Integration Module.]]></description>
		<lastBuildDate>Wed, 08 May 2024 22:35:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: New FrontAccounting Payment Integration Module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43088#p43088</link>
			<description><![CDATA[<p>If you would like to add the link and QR to your invoices etc make these changes to core</p><p>in &quot;/includes/ui/ui_view.inc&quot; change &quot;if (!isset($payment_services))&quot; to this<br /></p><div class="codebox"><pre><code>if (!isset($payment_services))
{
  $fa_url = &quot;https://&quot;.$_SERVER[&#039;HTTP_HOST&#039;].strtok($_SERVER[&#039;REQUEST_URI&#039;], &#039;?&#039;);
  $fa_url = str_replace(&#039;/reporting/reports_main.php&#039;, &#039;&#039;, $fa_url );

  $payment_services = array(
    &#039;PayPal&#039; =&gt; &quot;https://www.paypal.com/xclick?business=&lt;company_email&gt;&amp;item_name=&lt;comment&gt;&amp;amount&lt;amount&gt;&amp;currency_code=&lt;currency&gt;&quot;,
    &#039;StrikeOut&#039; =&gt; $fa_url.&quot;/modules/strikeout/pay/?co=&lt;company_no&gt;&amp;amount=&lt;amount&gt;&amp;custId=&lt;reference&gt;&quot;,
    &#039;XUMM XRP&#039; =&gt; &quot;https://xumm.app/detect/request:{{account}}?amount=&lt;amount&gt;&quot;
  );
}</code></pre></div><p>in &quot;/reporting/includes/doctext.inc&quot; change &quot;if (@$this-&gt;formData[&#039;payment_service&#039;])&quot; function to this to enable new variables and qr code generation.<br /></p><div class="codebox"><pre><code>    if (@$this-&gt;formData[&#039;payment_service&#039;])    //payment link
    {
        $amt = number_format($this-&gt;formData[&quot;ov_freight&quot;] + $this-&gt;formData[&quot;ov_gst&quot;] + $this-&gt;formData[&quot;ov_amount&quot;], user_price_dec());
        $service = $this-&gt;formData[&#039;payment_service&#039;];
        $url = payment_link($service, array(
            &#039;company_email&#039; =&gt; $this-&gt;company[&#039;email&#039;],
            &#039;amount&#039; =&gt; $amt,
            &#039;company_no&#039; =&gt; user_company(),
            &#039;document_number&#039; =&gt; $this-&gt;formData[&#039;document_number&#039;],
            &#039;currency&#039; =&gt; $this-&gt;formData[&#039;curr_code&#039;],
            &#039;trans_no&#039; =&gt; $this-&gt;formData[&#039;trans_no&#039;],
            &#039;type&#039; =&gt; $this-&gt;formData[&#039;type&#039;],
            &#039;tax_id&#039; =&gt; $this-&gt;formData[&#039;tax_id&#039;],
            &#039;reference&#039; =&gt; $this-&gt;formData[&#039;reference&#039;],
            &#039;comment&#039; =&gt; $this-&gt;title . &quot; &quot; . $this-&gt;formData[&#039;reference&#039;]
            ));
    $Footer[_(&quot;You can pay through&quot;). &quot; $service: &quot;] = &quot;$url&quot;;

    if (file_exists(&quot;../modules/strikeout/pay/inc/phpqrcode/qrlib.php&quot;))
    {
      include_once(&quot;../modules/strikeout/pay/inc/phpqrcode/qrlib.php&quot;); 
        $tmp_file = company_path(). &quot;/pdf_files/&quot;. random_id().&quot;.png&quot;;
        QRcode::png($url, $tmp_file, QR_ECLEVEL_L, 3);
        $this-&gt;Image($tmp_file,486,670,100,100);
    }
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (trafficpest)]]></author>
			<pubDate>Wed, 08 May 2024 22:35:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43088#p43088</guid>
		</item>
		<item>
			<title><![CDATA[New FrontAccounting Payment Integration Module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43087#p43087</link>
			<description><![CDATA[<p>I have created a payment integration module for frontaccounting called &#039;strikeout&#039; this was released as a standalone webapp before but decided to make it a direct FA extension</p><p>Currently it does 4 methods 1 more coming soon<br />Pick and choose the methods to enable</p><p>Strike (Standard Bitcoin and Bitcoin Lightning invoices) Custodial* Requires Account<br />Accept bitcoin tx and newer 2017+ lightning (instant global settlement) as the asset or home currency with 0 fees to merchant. Receiving home currency is nice if you don&#039;t want to account inventory and capital gains/losses of asset just accept payment. compatiable with all bitcoin wallets including cash app</p><p>PayPal (Venmo, PayPal, Afterpay?, &amp; credit cards) Custodial* Requires Account<br />Popular payment platform that most know</p><p>LNbits (Bitcoin Lightning) Non custodial* no account needed can host at home or a friend/family<br />Accept bitcoin instantly with no banks automatically generate invoices at the time of payment valued at the home currency. all kinds of plugins to trigger actions automatically like spit payroll, convert asset, trigger vending machines. etc</p><p>Stripe (Cash APP, EFT, credit cards) Custodial* Requires Account<br />Another popular payment platform that most know, slightly better on fees and I think a little better than paypal.</p><p>BTCPayServer (Standard Bitcoin and Bitcoin Lightning invoices) coming soon* Non custodial* no account needed dont even need to host<br />Another opensource platform geared towards vendors even has plugins for many webstores big thing here is you can be non custodial without even hosting your it. (standard bitcoin only lightning requires you to host) It has plugins for adding other crypto assets like USDT (digital security version of USD ie. a stable coin) though nothing other than Bitcoin has lots liquidity and is truly censorship resistant.</p><p>All platforms will auto enter fa payments and fees if applicable to the gl accounts you set for each for bitcoin there is a choice to inventory.</p><p>current limitations/things to do (This is unfinished software)<br />Clients fees/discounts: are not enabled yet you can enter them for each method but they will not change invoiced amount yet</p><p>Currencies: Currently I have it set to USD and BTC for currency this can be changed in code but will add it to the options soon</p><p>Fiscal year: if there isnt a fiscal year that matches the date of payment it will create a fiscal year Jan 1st to Dec 31st Pre your create future years to prevent this if you dont do cal year for fiscal year</p><p>payment refs: currently it is doing a date for the payment ref num not your preference.</p><p>Payment link: This will need to be added to core to support. I have it generating QR&#039;s and links on invoices but core payment link is a little odd (unfinished) I might create some custom included reports with the link already enabled (statements, invoices, deliveries etc) @</p><p>You can find it in my FA-EXT github here strikeout fork download it in modules and set the methods up api keys etc.<br /><a href="http://<br />https://github.com/trafficpest/FA24extensions/tree/strikeout/Extensions/strikeout<br />"><br />https://github.com/trafficpest/FA24ext … strikeout<br /></a></p><p>I dont have documentation but most of the standalone strikeout wiki docs apply <br /><a href="http://<br />https://github.com/trafficpest/strikeout/wiki<br />"><br />https://github.com/trafficpest/strikeout/wiki<br /></a></p>]]></description>
			<author><![CDATA[null@example.com (trafficpest)]]></author>
			<pubDate>Wed, 08 May 2024 18:29:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43087#p43087</guid>
		</item>
	</channel>
</rss>
