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

Variable symbol - leading zeroes #40

Closed
tonyp90 opened this issue Nov 22, 2021 · 4 comments
Closed

Variable symbol - leading zeroes #40

tonyp90 opened this issue Nov 22, 2021 · 4 comments
Assignees

Comments

@tonyp90
Copy link

tonyp90 commented Nov 22, 2021

Czech variable symbol can contain max 10 numbers including leading zeroes. It's not possible to generate this QR, because VS parameter is an integer.

@RikudouSage
Copy link
Owner

I'll look into it and implement a fix, thanks!

@RikudouSage RikudouSage self-assigned this Nov 22, 2021
RikudouSage added a commit that referenced this issue Nov 22, 2021
@tonyp90
Copy link
Author

tonyp90 commented Nov 23, 2021

Hello again and thanks for quick response. However, version 5.2.0 still generates QR code with variable symbol only "1", not required "00001".

$payment->setOptions([
QrPaymentOptions::VARIABLE_SYMBOL => '00001',
QrPaymentOptions::AMOUNT => 100,
QrPaymentOptions::CURRENCY => "CZK"
]);

@RikudouSage
Copy link
Owner

Sorry, that was mistake on my part, should now be fixed and contains tests to ensure it will work.

@tonyp90
Copy link
Author

tonyp90 commented Nov 24, 2021

Cool, thanks.

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