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

How to show qr payment method in flutter #393

Open
PavanZensark opened this issue Jul 24, 2024 · 4 comments
Open

How to show qr payment method in flutter #393

PavanZensark opened this issue Jul 24, 2024 · 4 comments

Comments

@PavanZensark
Copy link

Hi, can you please help me to show Qr code in payment options

@PavanZensark
Copy link
Author

'config': {
'display': {
'blocks': {
'upi': {
'name': 'Pay via UPI',
'instruments': [
{
'method': 'upi',
'flows': ['qr'],
'apps': ['google_pay', 'phonepe', 'bhim']
},
],
},
// 'wallets': {
// 'name': 'Pay via wallet',
// 'instruments': [
// {
// 'method': 'wallet',
// "wallets": ["amazonpay"]
// },
// ]
// },
},
'sequence': ['block.upi'],
'preferences': {
'show_default_blocks': false,
},
},
},

                its throwing error as "No appropriate payment method found", when flows qr is added

@vivekshindhe
Copy link
Contributor

@PavanZensark Hey, so we don't show the QR code on devices with less than a pre-set width size. In this case, it is 485px. Any device with a width greater than this would have the QR code enabled/visible by default. Unfortunately, we cannot enable the QR code on mobile devices with the config options either.

@PavanZensark
Copy link
Author

PavanZensark commented Jul 25, 2024

@vivekshindhe really appreciate for the fast response, is there any way we can show qr and receive status of payment in mobile

@vivekshindhe
Copy link
Contributor

@PavanZensark The status of the payment will be relayed to the application via the events mentioned here.
Regarding the QR code, unfortunately there is no way to manually enable QR on mobile device below a certain size.

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

No branches or pull requests

2 participants