• March 2018
  • Beta: PayWithStellar - Instant payment button

Hey guys, this is my first entry to the SBC and it's called PayWithStellar. Right now I am looking for beta testers to play with it using fake money trying it on all possible devices and testing its functionality and ease of use and implementation.

What is PayWithStellar? Just a simple button you can use in your website to ask for easy and instant payments in Stellar XLM. Feel free to download the library, run it on your site and let me know how useful it is. Feedback is welcome.

You can try it right now in this testing site:

https://myplaynet.herokuapp.com/paywithstellar

Or head over to Github for source review and downloads. Thanks a lot for your support.

https://github.com/kuyawa/PayWithStellar/

This looks really interesting, good job!

"Nothing. If you are a web developer and have basic html and javascript knowledge you can do it all by yourself in less than ten minutes. If you need help we will setup a site offering services for merchants like email confirmation, transaction explorer, orders and fulfillment, tracking, stats, etc. and we will charge the lowest fees in the market, not 10%, not 5%, just 1% so you keep all your hard earned money for your business." - are you planning on setting up a Stellar paypal-type site or a shopify type site?

    StevenWilliams

    It all depends on acceptance. See I already developed an XLM gift card sender to introduce family and friends to crypto and everybody poo-pooed it so I dropped further development, so let's see how this one goes.

    7 days later

    one thing about security... what happens if I change the price in the click event on my client side to 1?
    I did it right now and the popup asked me for 2 XLM instead of 24 xlm.

    Is this an issue, you're already aware of ?

      nick0816

      Yes I am aware of all client hacks which affect the client and nobody else. The server should validate the operation in order to deliver any goods. So if you change it to 1 and pay 1 XLM then once the seller confirms their own ledger they won't deliver anything and you've lost 1 XLM. You could also change the address and pay yourself trying to fool the system and many other tricks but sellers should always double check payments. There are plans for offering server side validation once more acceptance is tangibly demonstrated.

      This app is just a nice interface for clients to feel confident in Stellar as a payment method. Sellers should always double check their ledgers before delivery.

      Woah this is awesome!

      I had a similar idea just a few days ago, after I saw something similar in the Raiblocks community (https://brainblocks.io/). Unfortunately I couldn't figure out how to recreate it in the stellar world because of one issue: How do know that the correct person paid for the product?

      In your example there are 3 products: iPad, iPhone and iMac. All share the same address but they have a different memo text. If 2 customers come in and one of them sends the right amount, how do you identify this person? I tested it using 2 browsers and both received the success alert. Looks like everyone who was on this page at this time would receive this alert.
      Brainblocks can figure this out by showing a different address every time you click on their "PayWithRaiblocks"-Button. They probably create a new Raiblocks account "on the fly". When the right amount was received, they then forward it to the seller. (That's just my guess)

      Do you have an idea of how to solve this issue in stellar?

        Yousef It's up to the implementor to generate order Ids per every user just like in every shopping cart in the world. So you could generate any random number and assign it to the button onclick event just like this if you're using PHP:

        <button onclick="PayWithStellar.payment(event, 15.00, '<?=myorderid; ?>')">...
        a month later