[Skip to main content](#vessel-content)

#   pay by square

##

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 8 months ago [\#329151](#329151) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  *[pay by square](/forum/29-payment-methods/901839-pay-by-square#329151 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")* was created by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4
-- Browser(s) name and version -- : chrome

Hello,
is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)?
I mean:
customer chooses payment - bank transfer
he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

5 years 8 months ago [\#329153](#329153) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#329153 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Hi,

There is no existing plugin for that.
It would require developping a plugin to integrate with the webservice provided by "pay by square". So you'll have to hire a developer to work on that for you.
We have documentation for developers needing to do that here:
[ www.hikashop.com/support/documentation/6...r-documentation.html](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 7 months ago [\#330358](#330358) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#330358 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Can You please tell me how will I call total order price and invoice number?

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 7 months ago -  5 years 7 months ago [\#330361](#330361) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#330361 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

After adding this in the end view Code:

$d = implode("\t", array( 0 =&gt; '', 1 =&gt; '1', 2 =&gt; implode("\t", array( true, 123.45, // total amount 'EUR', // currency '20170101', // date 123456789, // invoice '0308', // '1111', // '', 'poznamka', // note '1', 'SK8011000000001234567890', // IBAN 'TATRSKBX', // SWIFT '0', '0' )) )); $d = strrev(hash("crc32b", $d, TRUE)) . $d; $x = proc_open("/usr/bin/xz '--format=raw' '--lzma1=lc=3,lp=0,pb=2,dict=128KiB' '-c' '-'", [0 =&gt; ["pipe", "r"], 1 =&gt; ["pipe", "w"]], $p); fwrite($p[0], $d); fclose($p[0]); $o = stream_get_contents($p[1]); fclose($p[1]); proc_close($x); $d = bin2hex("\x00\x00" . pack("v", strlen($d)) . $o); $b = ""; for ($i = 0;$i &lt; strlen($d);$i++) { $b .= str_pad(base_convert($d[$i], 16, 2), 4, "0", STR_PAD_LEFT); } $l = strlen($b); $r = $l % 5; if ($r &gt; 0) { $p = 5 - $r; $b .= str_repeat("0", $p); $l += $p; } $l = $l / 5; $d = str_repeat("_", $l); for ($i = 0;$i &lt; $l;$i += 1) { $d[$i] = "0123456789ABCDEFGHIJKLMNOPQRSTUV"[bindec(substr($b, $i * 5, 5))]; } if (!empty($d)) { $u = '/chart?chs=200x200&amp;cht=qr&amp;chld=L&#124;0&amp;choe=UTF-8&amp;chl=' . $d; $s = @fsockopen("chart.googleapis.com", 80, $e, $r, 1); if ($s) { $h = "GET " . $u . " HTTP/1.0\r\n"; $h .= "Host: chart.googleapis.com\r\n"; $h .= "Connection: close\r\n\r\n"; fwrite($s, $h); $e = ''; $c = ""; do { $e .= fgets($s, 128); } while (strpos($e, "\r\n\r\n") === false); while (!feof($s)) { $c .= fgets($s, 4096); } fclose($s); } header('Content-Type: image/png'); echo $c; }

i got this error in attachment

can you please help me

- [ ![errorpbs.png](/forum/attachment/52183) ](/forum/attachment/52183 "errorpbs.png") [ ](/forum/attachment/52183?download=1 "errorpbs.png")

Last edit: 5 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

5 years 7 months ago -  5 years 7 months ago [\#330395](#330395) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#330395 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Hello,

> Can You please tell me how will I call total order price and invoice number?

Of course, but where do you exactly want to have these information ?

> i got this error in attachment

We'll need more information about the context, where are you having that error, what's the goal of your code, what do you want to achieve ? Thank you.

Kind regards,
Mohamed.

Last edit: 5 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 7 months ago [\#330495](#330495) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#330495 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

total order price and invoice number I want to have in end view

I have this error in end view
I want to display there QR code wherein are information about payment that customer will scan in bank account app

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

5 years 7 months ago -  5 years 7 months ago [\#330510](#330510) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#330510 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Hi,

The code you've added to the view is displaying the content of the QR code on the page. So the "error" that you see is not an error. It's the content of the QR code when you read it with notepad.
You would see something similar if you try to open an image file with notepad++ for example.
So the issue is the way did you code.
You can't do Code:

header('Content-Type: image/png'); echo $c;

in a HTML view file.
You need instead to do something like that: Code:

echo '&lt;img src="data:image/png;base64,'.base64_encode($c).'" /&gt;';

to tell the browser that you're displaying an image and directly providing the content of the image.
[ stackoverflow.com/questions/3695077/php-html-image-output](https://stackoverflow.com/questions/3695077/php-html-image-output)

Last edit: 5 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 7 months ago -  5 years 7 months ago [\#330552](#330552) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#330552 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

I changed it like You said Code:

$d = implode("\t", array( 0 =&gt; '', 1 =&gt; '1', 2 =&gt; implode("\t", array( true, [color=red]123.45[/color], // total amount 'EUR', // currency '20170101', // date [color=red]123456789[/color] , // invoice '0308', // '1111', // '', 'poznamka', // note '1', 'SK8011000000001234567890', // IBAN 'TATRSKBX', // SWIFT '0', '0' )) )); $d = strrev(hash("crc32b", $d, TRUE)) . $d; $x = proc_open("/usr/bin/xz '--format=raw' '--lzma1=lc=3,lp=0,pb=2,dict=128KiB' '-c' '-'", [0 =&gt; ["pipe", "r"], 1 =&gt; ["pipe", "w"]], $p); fwrite($p[0], $d); fclose($p[0]); $o = stream_get_contents($p[1]); fclose($p[1]); proc_close($x); $d = bin2hex("\x00\x00" . pack("v", strlen($d)) . $o); $b = ""; for ($i = 0;$i &lt; strlen($d);$i++) { $b .= str_pad(base_convert($d[$i], 16, 2), 4, "0", STR_PAD_LEFT); } $l = strlen($b); $r = $l % 5; if ($r &gt; 0) { $p = 5 - $r; $b .= str_repeat("0", $p); $l += $p; } $l = $l / 5; $d = str_repeat("_", $l); for ($i = 0;$i &lt; $l;$i += 1) { $d[$i] = "0123456789ABCDEFGHIJKLMNOPQRSTUV"[bindec(substr($b, $i * 5, 5))]; } if (!empty($d)) { $u = '/chart?chs=200x200&amp;cht=qr&amp;chld=L&#124;0&amp;choe=UTF-8&amp;chl=' . $d; $s = @fsockopen("chart.googleapis.com", 80, $e, $r, 1); if ($s) { $h = "GET " . $u . " HTTP/1.0\r\n"; $h .= "Host: chart.googleapis.com\r\n"; $h .= "Connection: close\r\n\r\n"; fwrite($s, $h); $e = ''; $c = ""; do { $e .= fgets($s, 128); } while (strpos($e, "\r\n\r\n") === false); while (!feof($s)) { $c .= fgets($s, 4096); } fclose($s); } echo '&lt;img src="data:image/png;base64,'.base64_encode($c).'" /&gt;'; echo $c; }

and now I have there QR which is perfect but also there is the content of the QR, can You help me to reduce it?
and if You can tell me how can i get here real total amount of the order and also order number instead of 123.45 and 123456789

- [ ![paybysquare.png](/forum/attachment/52235) ](/forum/attachment/52235 "paybysquare.png") [ ](/forum/attachment/52235?download=1 "paybysquare.png")

Last edit: 5 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

5 years 7 months ago [\#330570](#330570) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#330570 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Hi,

You have all the data of the order in $this-&gt;order
For for example you have the order id in $this-&gt;order-&gt;order_id
And you have the total amount in $this-&gt;order-&gt;order_full_price

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 7 months ago -  5 years 7 months ago [\#331052](#331052) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#331052 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Thank You, it works
I guess that invoice ID I will get like this: $this-&gt;order-&gt;invoice_id

Can You please help me with reducing the content of QR under the QR code? Code:

$d = implode("\t", array( 0 =&gt; '', 1 =&gt; '1', 2 =&gt; implode("\t", array( true, $this-&gt;order-&gt;order_full_price, // total amount 'EUR', // currency '', // date $this-&gt;order-&gt;order_id, // invoice '0308', // '', // '', '', // note '1', 'SK7709000000005147806271', // IBAN 'GIBASKBX', // SWIFT '0', '0' )) )); $d = strrev(hash("crc32b", $d, TRUE)) . $d; $x = proc_open("/usr/bin/xz '--format=raw' '--lzma1=lc=3,lp=0,pb=2,dict=128KiB' '-c' '-'", [0 =&gt; ["pipe", "r"], 1 =&gt; ["pipe", "w"]], $p); fwrite($p[0], $d); fclose($p[0]); $o = stream_get_contents($p[1]); fclose($p[1]); proc_close($x); $d = bin2hex("\x00\x00" . pack("v", strlen($d)) . $o); $b = ""; for ($i = 0;$i &lt; strlen($d);$i++) { $b .= str_pad(base_convert($d[$i], 16, 2), 4, "0", STR_PAD_LEFT); } $l = strlen($b); $r = $l % 5; if ($r &gt; 0) { $p = 5 - $r; $b .= str_repeat("0", $p); $l += $p; } $l = $l / 5; $d = str_repeat("_", $l); for ($i = 0;$i &lt; $l;$i += 1) { $d[$i] = "0123456789ABCDEFGHIJKLMNOPQRSTUV"[bindec(substr($b, $i * 5, 5))]; } if (!empty($d)) { $u = '/chart?chs=200x200&amp;cht=qr&amp;chld=L&#124;0&amp;choe=UTF-8&amp;chl=' . $d; $s = @fsockopen("chart.googleapis.com", 80, $e, $r, 1); if ($s) { $h = "GET " . $u . " HTTP/1.0\r\n"; $h .= "Host: chart.googleapis.com\r\n"; $h .= "Connection: close\r\n\r\n"; fwrite($s, $h); $e = ''; $c = ""; do { $e .= fgets($s, 128); } while (strpos($e, "\r\n\r\n") === false); while (!feof($s)) { $c .= fgets($s, 4096); } fclose($s); } echo '&lt;img src="data:image/png;base64,'.base64_encode($c).'" /&gt;'; echo $c; }

- [ ![paybysq.png](/forum/attachment/52358) ](/forum/attachment/52358 "paybysq.png") [ ](/forum/attachment/52358?download=1 "paybysq.png")

Last edit: 5 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

5 years 7 months ago [\#331057](#331057) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#331057 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Hi,

The invoice ID is in $order-&gt;order_invoice_id
However, this value is normally 0 when the order is created and is only set when the order's status is changed to "confirmed".
So normally, it's the order_id you want to send them.
Regarding the QR code content being displayed after the QR code, you just need to remove the last line Code:

echo $c;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[marek393](/forum/user/31274-marek393 "View marek393's Profile")**
- [![marek393's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31274-marek393 "View marek393's Profile") Topic Author
- [ Offline](/forum/user/31274-marek393)

Less More

- Posts: 36
- Thank you received: 0
-
-

5 years 6 months ago [\#331382](#331382) by [marek393](/forum/user/31274-marek393 "View marek393's Profile")  Replied by *[marek393](/forum/user/31274-marek393 "View marek393's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#331382 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Hi,
ok I want to send them order_id but my order ID coontains year and 4digit order ID
but with the order_id I get only the 4digit ID

and one more question:
will it be possible to send the QR code in the email to customer when creating order?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

5 years 6 months ago [\#331384](#331384) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#331384 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Hi,

1. So it's not the order id you want to send but the order number. You can get the order number in $order-&gt;order_number

2. You could use the same code and replace $order by $data in the "HTML" section of the email when you edit the "order creation notification" email with the Business edition only.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")**
- [![mojweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5128-mojweb "View mojweb's Profile")
- [ Offline](/forum/user/5128-mojweb)

Less More

- Posts: 431
- Thank you received: 22
-

4 years 6 months ago [\#340789](#340789) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[pay by square](/forum/29-payment-methods/901839-pay-by-square#340789 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : chrome  Hello, is there a plugin or any method how to add pay by square at the end of the order (also to send it to mail to customer)? I mean: customer chooses payment - bank transfer he enters his bank app on his phone and he can choose scan QR to read all the information as bank account, price, reference, invoice number ...  thanks")*

Marek, can you share complete code for end view?
Im trying to implement this qr code, but always get error.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE4MzktcGF5LWJ5LXNxdWFyZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.115 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
