Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clever-pens-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@oaknetwork/payments-sdk": minor
---

updated sandbox url and provider registration types
8 changes: 4 additions & 4 deletions packages/payments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,10 @@ if (result.ok) {

### Environments

| Environment | API Base URL | Description |
| ------------ | --------------------------------------- | -------------------------------- |
| `sandbox` | `https://stage-payments.oaknetwork.org` | Testing — all operations allowed |
| `production` | `https://payments.oaknetwork.org` | Live — test operations blocked |
| Environment | API Base URL | Description |
| ------------ | ----------------------------------------- | -------------------------------- |
| `sandbox` | `https://sandbox-payments.oaknetwork.org` | Testing — all operations allowed |
| `production` | `https://payments.oaknetwork.org` | Live — test operations blocked |

```typescript
const client = createOakClient({
Expand Down
2 changes: 1 addition & 1 deletion packages/payments/src/types/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface EnvironmentConfig {
}

export const ENVIRONMENT_URLS: Record<OakEnvironment, string> = {
sandbox: "https://stage-payments.oaknetwork.org",
sandbox: "https://sandbox-payments.oaknetwork.org",
production: "https://payments.oaknetwork.org",
};

Expand Down
5 changes: 5 additions & 0 deletions packages/payments/src/types/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export namespace Provider {
provider_response: any | null;
rejection_reason: string | null;
readiness: any | null;
failure_reasons: string[] | null;
changes: string[] | null;
action_required: boolean;
created_at: string;
updated_at: string;
}
Expand Down Expand Up @@ -109,9 +112,11 @@ export namespace Provider {
status: string;
provider: string;
target_role: string;
provider_data: RegistrationData | null;
provider_response: any | null;
rejection_reason: string | null;
readiness: any | null;
action_required: boolean;
created_at: string;
updated_at: string;
}
Expand Down
Loading