mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
Change default confirmation target to 2
This commit is contained in:
@@ -359,7 +359,7 @@ export default async function DashboardPage({
|
||||
searchQuery={invoiceSearchQuery}
|
||||
sort={invoiceSort}
|
||||
order={invoiceOrder}
|
||||
defaultConfirmationTarget={profileData?.default_confirmation_target ?? 10}
|
||||
defaultConfirmationTarget={profileData?.default_confirmation_target ?? 2}
|
||||
/>
|
||||
) : null}
|
||||
{activeTab === "profile" ? (
|
||||
@@ -417,7 +417,7 @@ export default async function DashboardPage({
|
||||
</div>
|
||||
<div className="rounded-2xl border border-stroke bg-white/70 p-6 shadow-soft">
|
||||
<DefaultConfirmationTargetSection
|
||||
initialValue={profileData?.default_confirmation_target ?? 10}
|
||||
initialValue={profileData?.default_confirmation_target ?? 2}
|
||||
/>
|
||||
</div>
|
||||
<div className="rounded-2xl border border-stroke bg-white/70 p-6 shadow-soft">
|
||||
|
||||
@@ -207,7 +207,7 @@ curl -sS -X POST "$XMRCHECKOUT_API_BASE_URL/invoices" \\
|
||||
-H "Content-Type: application/json" \\
|
||||
-d '{
|
||||
"amount_xmr": "0.15",
|
||||
"confirmation_target": 10,
|
||||
"confirmation_target": 2,
|
||||
"metadata": { "order_id": "ORDER-1234" }
|
||||
}'`}</code>
|
||||
</pre>
|
||||
@@ -220,7 +220,7 @@ curl -sS -X POST "$XMRCHECKOUT_API_BASE_URL/invoices" \\
|
||||
-d '{
|
||||
"amount_fiat": "100.00",
|
||||
"currency": "USD",
|
||||
"confirmation_target": 10,
|
||||
"confirmation_target": 2,
|
||||
"metadata": { "order_id": "ORDER-1234" }
|
||||
}'`}</code>
|
||||
</pre>
|
||||
@@ -397,7 +397,7 @@ response = requests.post(
|
||||
headers={"Authorization": f"ApiKey {api_key}"},
|
||||
json={
|
||||
"amount_xmr": "0.15",
|
||||
"confirmation_target": 10,
|
||||
"confirmation_target": 2,
|
||||
"metadata": {"order_id": "ORDER-1234"},
|
||||
},
|
||||
timeout=10,
|
||||
@@ -470,7 +470,7 @@ func main() {
|
||||
|
||||
payload := map[string]any{
|
||||
"amount_xmr": "0.15",
|
||||
"confirmation_target": 10,
|
||||
"confirmation_target": 2,
|
||||
"metadata": map[string]any{
|
||||
"order_id": "ORDER-1234",
|
||||
},
|
||||
|
||||
@@ -351,7 +351,7 @@ const endpointRequirements = [
|
||||
auth: "API key",
|
||||
required: ["amount_xmr or amount_fiat + currency"],
|
||||
optional: [
|
||||
"confirmation_target (default 10, 0-10)",
|
||||
"confirmation_target (default 2, 0-10)",
|
||||
"metadata",
|
||||
"expires_at (ISO 8601)",
|
||||
],
|
||||
@@ -613,7 +613,7 @@ Content-Type: application/json
|
||||
{
|
||||
"amount_fiat": "100.00",
|
||||
"currency": "USD",
|
||||
"confirmation_target": 10,
|
||||
"confirmation_target": 2,
|
||||
"metadata": { "order_id": "ORDER-1234" }
|
||||
}`}</code>
|
||||
</pre>
|
||||
|
||||
Reference in New Issue
Block a user