Component API Reference
This document provides detailed specifications for the MoneroPaymentComponent included in the Monero Payment SDK.
MoneroPaymentComponent
A React component for displaying and processing Monero payments.
Props
gatewayUrl
string
Yes
-
URL of the payment gateway service
apiKey
string
No
-
API key for authentication with hosted services
amount
number
Yes
-
Amount in XMR to be paid
description
string
No
-
Description of the payment/invoice
refund
string
No
-
Refund address if payment needs to be returned
onPaymentComplete
function
No
-
Callback when payment is successfully received
onPaymentError
function
No
-
Callback when an error occurs
onPaymentStarted
function
No
-
Callback when payment process begins
checkInterval
number
No
10000
Interval in ms to check payment status
darkMode
boolean
No
false
Enable dark-themed UI
Events
onPaymentComplete
Triggered when a payment is detected and confirmed.
onPaymentError
Triggered when an error occurs during the payment process.
onPaymentStarted
Triggered when an invoice is successfully created.
Example Usage with Hosted Service
Last updated