You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6862da7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/docs-app/data/sdk/02-ticket-purchase-widget.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,15 +70,15 @@ Open the [Widget Playground](/sdk/widget-playground), select the same environmen
70
70
71
71
The widget forwards the token to Showpass checkout, which includes it in the basket request body. The playground keeps the token in memory and clears it on reload or environment change. Use a fresh token after its one-hour expiry; do not paste your Partner credential here. Close and reopen an existing modal after changing the applied token.
72
72
73
-
**If you are signed in, your Showpass account must match the token’s customer.** To test different customers, use an incognito window and stay signed out. Reset basket keeps the current login.
73
+
**If you are signed in, your Showpass account must match the token’s customer.** To test different customers, use an incognito window and stay signed out. Clearing and resetting keeps the current login.
74
74
75
75
### Reset a test checkout in the Playground
76
76
77
-
Applying or clearing a token changes the Playground setting. It does not discard items or change the customer attached to an existing Showpass basket. **Clear token** keeps that basket.
77
+
Applying a token changes the Playground setting and keeps the existing basket and customer. **Clear token & reset basket** removes both the pasted and applied token and expires that basket so you can test another customer.
78
78
79
-
Use **Reset basket** beside **Apply token**and**Clear token**, inside **Partner customer**, before testing another customer:
79
+
Use **Clear token & reset basket**beside**Apply token**, inside **Partner customer**, before testing another customer:
80
80
81
-
1. Click **Reset basket**. It immediately starts resetting the basket, with progress shown below the token controls. There is no separate confirmation page or dialog.
81
+
1. Click **Clear token & reset basket**. It immediately starts resetting the basket, with progress shown below the token controls. There is no separate confirmation page or dialog.
82
82
2. The Playground refreshes to unload old widgets and clears both the pasted and applied token. Your public settings are kept. The old basket is expired and its reservations released.
83
83
3. When **Basket reset** appears, paste and apply the next customer's token, then select items to create a fresh basket. Leave the token empty to try ordinary checkout.
onClick={()=>{setTokenInput("");setCustomerAttributionToken("");setCheckoutStatus("Token cleared. The existing basket is kept. Use Reset basket to discard it.");}}>Clear token</Button>
{tokenInput.trim()!==customerAttributionToken&&!tokenError&&<pclassName="text-xs text-muted-foreground">Your changes have not been applied yet.</p>}
284
281
<prole="status"className="text-xs">{customerAttributionToken ? "Token applied to Event Tickets." : "No token applied. You can still try normal checkout."}</p>
285
-
<pclassName="text-xs text-muted-foreground">Apply/Clear token keeps the current basket. Reset basket clears it and your token, then refreshes the Playground. Your login stays the same.</p>
282
+
<pclassName="text-xs text-muted-foreground">Applying a token keeps the existing basket. Clearing and resetting removes the token and expires that basket. Your login stays the same.</p>
286
283
{environment==="prod"&&<pclassName="text-xs text-destructive">Production reset releases real reservations, including those shared with other widgets.</p>}
0 commit comments