Skip to content

Implement @stellar-pay/sdk-js base client class #199

Description

@MissBlue00

Task

Create the StellarPay client class as documented in the README at packages/sdk-js/README.md.

Details

  • Add StellarPay class with constructor accepting { apiKey, webhookSecret } config
  • Implement createPayment(params) method that POSTs to the API
  • Implement verifyWebhook(signature, body) that validates HMAC-SHA256 signatures
  • Implement listPayments(filters) method
  • Export StellarPay as default from src/index.ts

Path

  • packages/sdk-js/src/index.ts

Test

Run pnpm --filter @stellar-pay/sdk-js build to verify no TypeScript errors.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions