Automate Digital Sales using XUMM Payment

We’ve used XUMM API and Google App Script to build an app, which automates the sales process.

What is XUMM?

In their own words:

The xumm platform allows developers and app users to “meet up”. While users can simply use the xumm application to track their accounts, balances and transactions, the true power of xumm is the platform available for developers and app users.

XUMM App is a mobile application(available for both android and iOS devices) which helps you track your a/c balance and transaction details. It uses XRPL for transaction. XRP is it’s main asset/currency.

What’s our script?

Let’s call our script as “PayWall Script”, to avoid confusion between XUMM app, XUMM API and our app script!

PayWall Script is like a widget which you can embed anywhere on your website. It automates your digital product sales. You can sell your ebooks, videos, photos, online services, subscriptions etc or you can even take donations on your site. Basically it automates the complete sales process. From accepting payment to e-product delivery to logging the sales(in a Spreadsheet) at your end for your reference. It also intimates you about the sale via email.

Tweet From Wietse Wind – Founder of XUMM Platform

^ This Above Tweet Made My Day. I take this opportunity to thank Wietse Wind for building XUMM Platform.

continuing with the PayWall Script ..

Multiple Product Sales

You can create unlimited widgets i.e.,  you can sell as many products as you want. There is no limit whatsoever. You can see 5 products being listed below. All these use a single script. Just enter a few information about your new product and you’ve a new widget ready, to take payment and automate the sales process.




You need not know anything about programming. You just have to enter 3 to 4 information about your new product in a Spreadsheet and you’ve a new widget automatically ready for you.

For Example:

You’re selling an e-book or a video for $5. Implement a widget on your sales page or on the sidebar of your blog, where someone can enter his or her minimal details and pay using the XUMM app. Once user makes the payment, you’ll get $5 worth of XRP(or any IOU asset) into your XUMM a/c immediately(it’s almost instant transfer or maybe it’ll take 5 seconds). Once your XUMM a/c is credited, the script will send the e-book or the video or anything digital that you are selling to the customer’s email address and then enters the sale details inside your Google Docs Spread Sheet. You’ll also receive email notification of the sales – you can turn it on/off.



Use Cases

Why use crypto-asset like XRP(or any IOU asset) for accepting payment? Why not just fiat USD, EUR, INR, YUAN, YEN etc?

First and foremost, we’re interested in crypto adoption. If you’re new to Cryptocurrencies and the revolution it has created, then it might sound confusing at first. So lets not go into details now.

For the end user(YOU), there are lot of advantages too. I’ll try to list a few below:

1. You’ll be in control of your asset(digital asset) and not the government or the banks or anyone.

2. You can use XRP(or IOU asset) you get out of sales, to buy someone else’s product.

3. Speculative aspect: XRP is a digital asset created by the company Ripple. Ripple is busy building huge things which involves XRP in the background. There are more than 300 banks which have partnered with Ripple. People usually speculate over price of these digital assets(XRP). So you can hold XRP in your XUMM App and sell it on an exchange when the price moves higher.

4. There are people who sell their videos and photos on SnapChat, WhatsApp or Telegram. Sometimes their channels or groups get flagged and they lose all the audience they gained. They also face difficulty in separating paid and non paid customers. So they start billing on monthly basis, which is high for some users. In such cases, they can use our “PayWall Script” to sell their digital photos and video content. They can create group or channels only to release teaser or link to the page where they’ve embed the PayWall Script to sell their product. And the transaction charges are almost 0, unlike 3 to 4% charged by Paypal or Visa and MasterCard to process the payment.

5. We’ve all heard of Paypal, Stripe, Payoneer and other payment gateways banning peoples accounts without any prior intimation and not even giving proper reason for the ban. We can clearly avoid being in such a situation by adopting to crypto currencies.

Bonus: Not everyone want to reveal their identity while selling digital products. We’ve seen a lot of people on Twitter and Reddit who provide excellent content and research reports, but they usually are behind an anonymous profile. They don’t want to risk their privacy. They might be providing critical information which might harm their social life. But their content is so valuable that people want to pay. In such cases people can use “PayWall Script” and sell their digital goods with their privacy 100% intact.

Note: Note that XRP is not a privacy coin. By using digital asset like XRP you’ll get one layer of privacy i.e., no one will notice you by your XRP wallet address immediately. But if you’ve huge balance in your wallet and if people want to trace you, they can check the transaction IDs and figure things out.

But I want USD, EUR, INR etc Fiat Currencies

Still want to get your local currency? No problem. You can send the XRP you’ve earned to a crypto exchange in your country, sell it for your local currency and withdraw it to your bank account.

Here are some good crypto exchanges:
1. Binance
2. Bittrex
3. BitBns (India) and WazirX (India)
4. CoinField
5. Coinbase

You can input “< your country name > crypto exchange” on Google and check some reviews and signup an account, to sell your XRP. Make sure they’ve XRP listed.

PayWall Script Supports IOU Transactions

IOU(abbreviated from the phrase “I owe you”) is supported by PayWall Script. You can open your xumm app and click on ( + Add ) button beside “Other assets” label. There you can see Exchanges like Bitstamp, GateHub, Towo Labs and Sologenic being listed. These exchanges are the trusted parties to issue IOU over xumm app.

PayWall script supported IOUs:
“USD”, “BTC”, “EUR”, “ETH”, “BCH”, “ETC”, “CSC”, “REP”, “XTK”, “SOLO”.

CSC – CasioCoin.
Note: If you’re selling products via “PayWall Script” and if you don’t establish trustline with any of the IOU issuer, that’s fine. If a user pays you USD or BTC or any other IOU, it’ll automatically be converted into default asset, which is XRP in your xumm app.

How much does it cost for PayWall Script?

It costs you $0. Yes, it’s free to use. I developed this script for the love of this community. You can install it on any number of Google accounts you have, to sell any number of products. You can make as much profit as you want using this Software, by selling your products and services.

Installation and Configuration Procedure

This script needs to be installed and configured once before you start adding, editing, deleting your products information – so I’ve produced a video showing the procedure.

Automate Digital Sales using PayWall Script: XUMM API


[youtube https://www.youtube.com/watch?v=aMnsVneAUsw]

YouTube Link: https://www.youtube.com/watch?v=aMnsVneAUsw [Watch the Video In Full Screen.]


Note: If you’ve logged into multiple Google a/c’s, then log out of all of them except the one you want “PayWall Script” to be installed.

Creating Widget Code For Your Product




Future Updates For PayWall Script

You can always visit our github page PayWall Script to check for updates and addition of new issued assets, and update the code present in your App Script.

Update Procedure
Open your “PayWall Script” Google SpreadSheet. Click on “Tools” menu. Select “Script editor”. This opens a script editor with 2 files Code.gs and embed.html.

Now you can visit our git repository and copy the contents of these 2 files and directly paste it inside your Code.gs and embed.html files. And do not forget to update your xumm app’s api key and api secret inside your Code.gs file and edit the 87th line(image asset location) in embed.html file.

This updates your “PayWall Script” to latest version.

Installation Service

This script is open source and anyone can use it. I’ve already shown you the entire process to install and configure the script in above YouTube video. But if you want an expert to install and configure it for you, then we can do it for you with a small, one time fee of $5. Order the service using below widget and we’ll get back to you in 48 hours.

Technical Details

This script resides in your Google Drive and it only connects to your own Google services and XUMM API. That’s it. No other third-party connections are made, hence it’s very safe and secure.

We’ll never ask you to share your xumm app’s passcode or password or secret phrase ever.

Tweet From Bob Ras, CEO at CoinField | Co-Creator Sologenic

OsmWallet: non-custodial browser extension

If you are in the XRP ecosystem and want to use a non-custodial wallet similar to MetaMask, but for XRP Ledger chain, then check out our wallet: OsmWallet