Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twint #129

Closed
vincenttarrit opened this issue Jun 1, 2021 · 28 comments
Closed

Twint #129

vincenttarrit opened this issue Jun 1, 2021 · 28 comments
Labels
support Support & help

Comments

@vincenttarrit
Copy link

vincenttarrit commented Jun 1, 2021

Hello, how could I do to use this QR creator to make it works with TWINT ? Thank you !


Current state (as of March 20, 2023):
Twint currently does not seem to add new merchants. To issue qr invoices with Twint support, you can go through RaiseNow, if you are willing to become their customer. See this comment.

Technical answer:
It's possible to use the AlternativeScheme to make the QrCodes work with Twint.
Something like this should work:

$qrBill->addAlternativeScheme(AlternativeScheme::create(
        'twint/light/<TWINT QrCode String>'
    ));

To get a Twint QRCode String you need to be registered as a TWINT merchant.
See https://www.twint.ch/en/business-customers/our-solutions/bill-via-twint-qr-code/swiss-qr-code/?lang=en

@omueller
Copy link

omueller commented Jun 1, 2021

@vincenttarrit for me if I scan a QR code generated by the php-swiss-qr-bill library with Twint, I get "This swiss QR code is not yet compatible with Twint". Will this ever be the case ? I would guess no, as Twint will want to get 0.xxx% of the transaction.

Maybe you will have more luck via https://www.twint.ch/en/business-customers/products/qr-code-sticker/ ? (you then need to register as a merchant, etc.).

PS: ok, it should be possible according to https://www.twint.ch/en/press/new-qr-bills-can-also-be-paid-using-twint/?lang=en, but you need to have a contract with Twint first.

@sprain
Copy link
Owner

sprain commented Jun 2, 2021

In order for the QR bill to be payayble with Twint, the corresponding AlternativeScheme must be integrated in the QR bill (which can be done with this library).

I have never actively tried to integrate Twint within one of my qr bills and do not know whether it really is possible already. But there is some more information available here:

@sprain sprain added the support Support & help label Jun 2, 2021
@Jul000
Copy link

Jul000 commented Mar 21, 2022

Hello, does someone successfully make the qr works with TWINT ? Thanks

@raisenow
Copy link

It's possible with RaiseNow.
Disclaimer, I am the CTO of RaiseNow.
Check: https://www.raisenow.com/de-ch/produkte/twint and https://support.raisenow.com/hc/en-us/articles/360019765778-How-to-use-the-QR-Bill-TWINT-Extension

@sprain
Copy link
Owner

sprain commented Jun 28, 2022

@raisenow Is your functionality somehow implementable with this library? If yes, how?

@raisenow
Copy link

My apologies, I didn't want to spam this with advertising but was trying to help.
We do use this library. (And this approach works without being a RaiseNow customer. All you need is the TwintQr code).

As you described above, it's possible to use the AlternativeScheme to make the QrCodes work with twint.
Something like this should work:

$qrBill->addAlternativeScheme(AlternativeScheme::create(
        'twint/light/<TWINT QrCode String>'
    ));

To get a TwintQR Code you need to be registered as a TWINT merchant. AFAIK this does not work for "Person to Person" payments.

@sdespont
Copy link
Contributor

sdespont commented Jun 29, 2022

@raisenow the alternative scheme would only displays the Twint QR-Code string. I don't really understand how it would help the customer to pay with his Twint app because it is not scannable.

@raisenow
Copy link

@sdespont no it will also change the QR-Code itself and then it is scannable with the Twint app.

@sdespont
Copy link
Contributor

@raisenow OK, but then when using this new QR-Code, it is only payable with Twint? Or it would also be usable by banking apps?

@raisenow
Copy link

@sdespont both, twint and banking app

@sdespont
Copy link
Contributor

@raisenow Oh, the alternative scheme is part of the QR-Code. Sorry, I missed that point...

@sprain
Copy link
Owner

sprain commented Jun 30, 2022

We do use this library.

👍😄

As you described above, it's possible to use the AlternativeScheme to make the QrCodes work with twint.
To get a TwintQR Code you need to be registered as a TWINT merchant. AFAIK this does not work for "Person to Person" payments.

Thanks! This should be helpful for anybody wanting to integrate this functionality.

@sprain
Copy link
Owner

sprain commented Aug 28, 2022

@sprain sprain closed this as completed Aug 28, 2022
@h9k
Copy link

h9k commented Dec 5, 2022

Sorry to bother on a closed issue, but it is totally unclear to me what the "Twint QRcode string" is and where to get it from exactly. I have an account at https://portal.twint.ch/ but I cannot find information anywhere. I only can generate so called QR code stickers with a fixed amount or free amount, but that does not appear to be very helpful.
Has anyone actually been successful at integrating Twint and wants to share what needs to be done Twint-side? Thank you!

@sprain
Copy link
Owner

sprain commented Dec 5, 2022

The QR code stickers from Twint are something different than the QR bill.

To create a QR bill which is payable by Twint you need a specific string to be added as an AlternativeScheme to the QR bill (see original post of this issue). You need to contact Twint to get this string.

@baerenklau
Copy link

Thank you very much for php-swiss-qr-bill, saved me a lot of time and trouble.
I stumbled over the Twint discussion and wanted to add the Twint possibility for the QR bill as well. I asked the Twint support a couple of times to for my QR-code-string. Either way it seems to be a very uncommon question or they are not happy to share the string or they do not share it at all. The last reaction was that they asked me to contact RaiseNow about the missing string/parameter. Can anyone verify that this would be an appropriate way or do I have to ask another question?

@sprain
Copy link
Owner

sprain commented Mar 14, 2023

If you are a billing party with medium-sized volumes (fewer than 10,000 bills per month) and would like to offer the TWINT QR code bill, please contact your billing party software provider directly. (Source)

Looks like Twint only wants to deal with merchants with more than 10'000 bills per month.

The last reaction was that they asked me to contact RaiseNow about the missing string/parameter. Can anyone verify that this would be an appropriate way or do I have to ask another question?

You might have to ask RaiseNow about this. I suspect you are somehow connected to them, as a user or client?

@ucola
Copy link

ucola commented Mar 17, 2023

hi @sprain same here, we became today an answer (after 2 month) that we need to contact RaisNow! Strange...

@sprain
Copy link
Owner

sprain commented Mar 17, 2023

@raisenow Any ideas why Twint points people to you?

@raisenow
Copy link

raisenow commented Mar 17, 2023 via email

@sprain
Copy link
Owner

sprain commented Mar 19, 2023

Thanks for the clarification, @raisenow!
So in a nutshell, Twint does not want to add each merchant individually, but points to third-parties like RaiseNow.

@baerenklau
Copy link

baerenklau commented Mar 19, 2023

I don´t get the whole logic about it but probably there is some. I can create a QR-code that lets someone make a payment to my Twint-account if I use the app. This QR-code can be generated within the Twint account. Probably things like subject and amount could be added - maybe not. Does someone know whats the difference between a direct payment with Twint using the QR-code of the recipient and a QR-invoice link. What is the additional service of the payment service provider in this special case?

@sprain
Copy link
Owner

sprain commented Mar 19, 2023

@baerenklau

Does someone know whats the difference between a direct payment with Twint using the QR-code of the recipient and a QR-invoice link.

The Twint QR code is to be used with Twint only.
The QR invoice is mainly made to be used for bank transfers via your bank account.

However, there is a feature which allows the QR invoice to be paid through other means, if they support it AND the option is actively integrated into the QR invoice. Twint added this support and communicated it, but now does not really want to handle the work ;)

In my opinion, there are very few use cases where adding the Twint feature to the QR invoice makes sense. It can be neglected for normal business cases.

@baerenklau
Copy link

Thanks a lot for your comment. So if I use Twint with e.g. Postfinance the QR-Code link with Twint would be more a link to the PSP Postfinance with potentially more payment options than Twint?
The case I thought would be nice is either a link to the Twint App with amount and subject or a QR code with the same information that allows a quick payment of an invoice (either PDF therefor the link or Paper with QR code). I think Twint is great for prepayment but would be also comfortable for invoice payment.

@sprain
Copy link
Owner

sprain commented Mar 19, 2023

So if I use Twint with e.g. Postfinance the QR-Code link with Twint would be more a link to the PSP Postfinance with potentially more payment options than Twint?

No. The qr invoice contains no link.
If the invoice supports Twint, the user still needs to decide in advance whether they want to use the app of their bank or the Twint app to scan and pay the qr invoice.

@baerenklau
Copy link

So probably a payment link that leads to the PSP payment site with a redirection to a
"thank you" page would be more customer friendly at all.
That is as far as I understand more or less the job that RaiseNow does.
Or alternatively the QR-code for the twint app which could be generated in the Twint user interface.
The only downside of this QR code is the missing amount and subject.

@raisenow
Copy link

raisenow commented Mar 19, 2023 via email

@sprain
Copy link
Owner

sprain commented Mar 20, 2023

Thanks for all your ideas, opinions and comments.

For further discussion, let's focus again on what's relevant for the technical aspects within this PHP library, as this is the purpose if this issue. The current state of things is summarized in the original post above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support & help
Projects
None yet
Development

No branches or pull requests

9 participants