Embed

Payment button

A payment button opens the Prio window with one task: pay a Prio user. The token is the referralToken the API returned when you created that user.

Attribute Value Required
data-prio-pay the payee’s referralToken yes
data-prio-amount a positive number no
data-prio-color dark (default) or light no
data-prio-text the button’s label no
HTML
<button data-prio-pay="maya-ortiz"
        data-prio-amount="250">Pay Maya</button>

Opening it from your code

JavaScript
PrioPay.open("maya-ortiz", { amount: 250 });
PrioPay.openOnboarding({ jwt, refreshJwt });
PrioPay.close();
PrioPay.init(); // wires buttons added after load

Prio may display inaccurate info at times, please double check the responses.