xseman / bysquare

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

feat: add payment helper functions #38

Closed xseman closed 1 month ago

abhishekpaturkar commented 3 months ago

any description ?

xseman commented 3 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 3 months ago

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

xseman commented 1 month ago

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