question

Dyego Costa avatar image
Dyego Costa asked Dyego Costa commented

What is the best what to get Clover's Javascript SDK?

In order to use the JS SDK I copied the bundled file from this project that includes all files on the src/main/webapp/src path. It worked but it's a pain and there is no easy way to keep it up to date https://github.com/clover/remote-pay-...

Is there any direct download link, npm package or anywhere else I can get a reliable bundled version from?

Also is considered to have the functions of this packaged exported as modules? https://developer.mozilla.org/en/docs...

3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mike M avatar image Mike M commented ·

Remote Pay Cloud is specifically for our semi-integrated use case. Is that what you are developing for or are you looking for a javascript wrapper for our API?

0 Likes 0 ·
Dyego Costa avatar image Dyego Costa commented ·

Yes, that is what I'm developing. Something very similar to the behaviour of the Remote Pay Cloud. Basically adding the Clover payment option to an existing webapp that accepts multiple types of payments. So using the lib that is available on the Remote Pay Cloud project helped my case, but I don't see a easy way to get it and keep it updated.

0 Likes 0 ·
hammer avatar image hammer ♦ commented ·

See mike's comment for the answer.

0 Likes 0 ·
Bryanne Vega avatar image
Bryanne Vega answered Dyego Costa commented

I actually just went to Project > Settings > Dependencies Searched for com.clover and the SDK was right there.

Latest version as always, check that up, let me know if it helps!

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dyego Costa avatar image Dyego Costa commented ·

Project > Settings > Dependencies from where exactly? Is it from a specific IDE? I'm using vim

0 Likes 0 ·
Mike M avatar image
Mike M answered Dyego Costa commented

Hi @dyegocosta, we've started hosting the Javascript SDK on npm: https://www.npmjs.com/package/clover-...

Please keep in mind that we are currently still on v0; development is still ongoing so please bear with us. At least versioning will be easier to discern now :)

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dyego Costa avatar image Dyego Costa commented ·

Awesome! <3 Nice work!

0 Likes 0 ·

Welcome to the
Clover Developer Community