xseman / bysquare

Encode & Decode "PAY by square" QR string.
https://xseman.github.io/bysquare/
Apache License 2.0
30 stars 6 forks source link

feat: add payment helper functions #38

Closed xseman closed 3 weeks ago

abhishekpaturkar commented 2 months ago

any description ?

xseman commented 2 months ago

@abhishekpaturkar I was thinking about simplifying the data build for the encode function, but now I believe using helper functions like createPaymentOrder() for PaymentOrder, StandingOrder and DirectDebit might be better. I'm still not completely sure, though.

abhishekpaturkar commented 2 months ago

By using these helper functions you mentioned, we can simplify serialize function and make it more clean.

xseman commented 3 weeks ago

Implemented by https://github.com/xseman/bysquare/pull/48