Skip to content

feat: add atomic Stellar subscription paywall - #1943

Open
Killerjunior wants to merge 4 commits into
StellarDevHub:mainfrom
Killerjunior:codex-fe-090-stellar-subscription-paywall
Open

Killerjunior wants to merge 4 commits into
StellarDevHub:mainfrom
Killerjunior:codex-fe-090-stellar-subscription-paywall

Conversation

@Killerjunior

Copy link
Copy Markdown
Contributor

Summary

Closes #1787

Adds a Stellar subscription paywall that checks a student’s SEP-41 token balance and existing allowance before enrollment. The wallet signs one Soroban transaction that calls the subscription contract’s enroll_with_allowance entry point, which is expected to handle any needed allowance increase and enrollment atomically.

The modal shows the fee and allowance details, then displays an animated success state with the transaction hash and estimated expiry date after confirmation.

Configuration

Set these public environment variables for the target network:

  • NEXT_PUBLIC_SUBSCRIPTION_TOKEN_ID
  • NEXT_PUBLIC_SUBSCRIPTION_CONTRACT_ID

The subscription contract must implement enroll_with_allowance with the arguments used by the frontend.

Validation

  • git diff --check passed.
  • Lint and TypeScript checks could not run because frontend dependencies are not installed and npm is offline.

@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Killerjunior is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Killerjunior Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FE-090] Subscriptions & Paywall Gating Web3 Modal with SEP-41 Token Allowance Pre-Approvals

1 participant