partieshoogl.blogg.se

Cloudapp mobile
Cloudapp mobile












The event that is sent contains an invoice which can be accesed by tail. The events are sent when the widget detects a state change of an invoice. We will describe which events are sent, when they are sent and what data they return. The following section assumes you know the basics of web development (HTML and JavaScript). Var element = document.getElementById("my-unique-identifer") ĮtAttribute("data-amount", 200.98)

#Cloudapp mobile code

Valid JavaScript code looks like the following example. Įxample: tAttribute("data-amount", 200.98) ĭone, your element should now have a new value for the specifed attribute! Set the attribute with the help of tAttribute(name, value). Įxample: var element = document.getElementById("my-unique-identifer") Updating the attributes of an element can be done in several ways and below is one example of how this could be done in plain JavaScript.įetch the element with the help of document.getElementById(id). The QR payment has more features and these are explained in the sections below.

cloudapp mobile

To see a status of a payment you will need to login into the Partner GUI. When using the simplest form there is no integration towards your system. What we described so far is the simplest form of the QR payment widget. EUR).Ī valid QR payment widget looks like the following example. The currency should be in the ISO-4217 format (e.g. The amount can be any positive number up to four decimals (e.g. The value should be in the RFC 4122 version 4 format. Your unique identifier (UUID) for the API user created in the Partner GUI.

cloudapp mobile

The following requirements for each attribute are: data-api-user-id If any of the above attributes is missing there will be an error thrown in your browser. The QR payment widget requires four different attributes on your element. The initial size of the widget will be 36x45 pixels, when expanded the widget will grow to 200x400 pixels.

cloudapp mobile

To use the QR payment widget you should use the mobile-money-qr-payment CSS class on your element. NOTE: An element can only contain ONE of the CSS classes. Include the following script tag in your tag in your root html document which is usually named index.html.Īdd one or several elements with one of the following CSS classes: mobile-money-qr-payment. To integrate with the Mobile Money widget there are two requirements.












Cloudapp mobile