rspective / voucherify.js Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] JavaScript SDK for Voucherify - coupons, vouchers, promo codes
Home Page: http://www.voucherify.io
License: MIT License
[Deprecated] JavaScript SDK for Voucherify - coupons, vouchers, promo codes
Home Page: http://www.voucherify.io
License: MIT License
Do we have the API Swagger files available for download?
Thanks,
João Batista
Thanks for your work. This is the first error we've encountered with Voucherify so far.
Attempting to call Voucherify.validate(${code})
is returning a 500 error starting today [2018-04-26 Thu].
Source: <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/rspective/voucherify.js@latest/dist/voucherify.min.js"></script>
voucherify.js:170 GET {my_site_url}/undefinedcode={code} 500 (INTERNAL SERVER ERROR)
y @ voucherify.js:170
validate @ voucherify.js:284
(anonymous) @ orders.1d880d8….js:1
(anonymous) @ 0.1d880d8….js:1
(anonymous) @ 0.1d880d8….js:1
n.validateCode @ orders.1d880d8….js:1
(anonymous) @ 0.1d880d8….js:1
invokeGuardedCallback @ 0.1d880d8….js:1
invokeGuardedCallbackAndCatchFirstError @ 0.1d880d8….js:1
S @ 0.1d880d8….js:1
A @ 0.1d880d8….js:1
P @ 0.1d880d8….js:1
C @ 0.1d880d8….js:1
N @ 0.1d880d8….js:1
I @ 0.1d880d8….js:1
_n @ 0.1d880d8….js:1
batchedUpdates @ 0.1d880d8….js:1
Be @ 0.1d880d8….js:1
wn @ 0.1d880d8….js:1
interactiveUpdates @ 0.1d880d8….js:1
Mn @ 0.1d880d8….js:1
With my_site_url
replaced by the URL of the site from which I made the request and code
replaced with the voucherify code I have attempted to validate.
When I revert back to 1.17.0 and run Voucherify.validate(${code})
, a 200 response is returned.
Source: <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/rspective/[email protected]/dist/voucherify.min.js"></script>
Just a small suggestion. In the gif on your website you show that the old price "$45" is replaced by "$40".
I think it would way more visually appealing if you strike-through the old price, and add a new (bold + larger font) line underneath which shows the reduced "$40" price tag.
In HTML it would be something like this:
<del style="color: red">$ 40.00</del><br/><strong style="font-size:150%">$ 45.00</strong>
It's caused by setting timeout on XHR before opening it:
https://github.com/rspective/voucherify.js/blob/v1.6.1/lib/voucherify.js#L84
Drop API version support for other versions than 2018-08-01 and latest
Make sure that the following methods are provided:
Make sure that the following methods can work with extended Order Item model:
Order; https://docs.voucherify.io/v2018-08-01/reference#the-order-object
Order Items; https://docs.voucherify.io/v2018-08-01/reference#the-order-item-object\
Create Order; https://docs.voucherify.io/v2018-08-01/reference#create-order
Update Order; https://docs.voucherify.io/v2018-08-01/reference#update-order
Validate Voucher; https://docs.voucherify.io/v2018-08-01/reference#validate-voucher
Validate Voucher (client side); https://docs.voucherify.io/v2018-08-01/reference#vouchers-validate
Validate Promotions; https://docs.voucherify.io/v2018-08-01/reference#validate-promotions-1
Redeem Voucher; https://docs.voucherify.io/v2018-08-01/reference#redeem-voucher
Redeem Voucher (client side); https://docs.voucherify.io/v2018-08-01/reference#redeem-voucher-client-side
Redeem Promotion; https://docs.voucherify.io/v2018-08-01/reference#redeem-promotion
Close the issue if no operation is needed or provide a solution with next release.
Make sure that Track Custom Event
method is supported: https://docs.voucherify.io/v2018-08-01/reference#create-custom-event
customer
and event
are requiredmetadata
is optionalreferral
is optionalA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.