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

Generate QR-Code feature #20

Merged
merged 2 commits into from
Aug 19, 2023
Merged

Generate QR-Code feature #20

merged 2 commits into from
Aug 19, 2023

Conversation

hoosnick
Copy link
Member

  • New to_qrcode() feature for GeneratePayLink method (Generate QR-Code #14)
  • Generate qr code using Payme's websocket (wss://checkout.paycom.uz/)
  • Ability to work with the following custom settings when generating a qr code: bg_color, height, width
  • 2 third party libraries have been added to ensure fast and correct work
  • Added new QRCodeError exception for to_qrcode() method

- New `to_qrcode()` feature for `GeneratePayLink` method
- Generate qr code using Payme's websocket (wss://checkout.paycom.uz/)
- Ability to work with the following custom settings when generating a qr code: `bg_color`, `height`, `width`
- 2 third party libraries have been added to ensure fast and correct work
- Added new `QRCodeError` exception for `to_qrcode()` method
@hoosnick
Copy link
Member Author

hoosnick commented Aug 19, 2023

from payme.methods.generate_link import GeneratePayLink

img_path = GeneratePayLink(order_id=1, amount=15000.0).to_qrcode()

print(img_path)
'qr-codes/61df3e74bb1d43d4a79c235175f48053.png'
from payme.methods.generate_link import GeneratePayLink

img_path = GeneratePayLink(order_id=1, amount=15000.0).to_qrcode(bg_color='#A569BD')

print(img_path)
'qr-codes/4e8f3c9934af48688008406f60599982.png'

@hoosnick
Copy link
Member Author

hoosnick commented Aug 19, 2023

Generate qr code using Payme websocket because they check if the data is valid or not. Documentation

image

@hoosnick hoosnick merged commit 72ef393 into PayTechUz:payme-pkg-3.0b Aug 19, 2023
3 checks passed
@hoosnick hoosnick self-assigned this Aug 19, 2023
@hoosnick hoosnick added the enhancement New feature or request label Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant