Props
Última actualización
Última actualización
To work correctly, Amplify SDK requires a series of properties which are used to create payment intents and correctly set up the interface. In addition, there are a series of properties to customize the experience and keep it consistent with the flow of each integration. The list of properties is as follows:
Namde | Description | Required | Default value | Type |
---|---|---|---|---|
createPaymentIntentUrl
URL of the project that will handle creating the payment intents. For more information: Payment intents
""
string
theme
Avaialble themes of the SDK
dark
dark | light
language
Available languages of the SDK
ES
ES | EN
createPaymentIntentData
Information sent to createPaymentIntentUrl
within the body
{}
any
environment
Grants the ability to run the SDK in a test or production environment
test
test | production
chain
Default network that will be displayed in the SDK
Polygon
string
currency
Default token that will be displayed in the SDK
USDT
string
amount
Default amount of tokens that the SDK will show
number
WALLETCONNECT_PROJECT_ID
Project identifier for WALLET CONNECT. If you don't have one, it can be obtained at: https://cloud.walletconnect.com
string
blockAmount
Disables the ability to modify the amount from the SDK interface.
false
boolean
hideAmount
Hides the amount to be sent in the SDK interface.
false
boolean
onlyDestination
Determines whether the user can choose the network, token, and amount to send or only the means by which it will be sent.
false
boolean
modal
Determines whether the SDK will be displayed as a modal or not
false
boolean
customStyles
Javascript object to customize SDK styles
{}
CustomStyles
translations
Javascript object to customize the wording of the SDK
{}
TranslationsPublicInterface