Skip to content

Commit 5cc23aa

Browse files
committed
feat: documented secondary_processor_id
1 parent dfe2b7f commit 5cc23aa

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

schema/schemata/donation-detail.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ definitions:
147147
example: "123456789"
148148
type:
149149
- string
150+
secondary_processor_id:
151+
description: an optional secondary id for the payment from the processor. Currently only used for payments imported via the Vipps/MobilePay Report API
152+
example: "123456789"
153+
type:
154+
- string
150155
payment_id_for_processor:
151156
description: the id we send to the payment processor and acquirer
152157
example: 12345-slyellei_0

source/includes/resources.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ The private details about a donation. Includes Personal data. A secret key is re
314314
| **payment:methods** | *string* | The payment methods chosen when the donation was created | `"credit_card"` |
315315
| **payment:payment_id_for_processor** | *string* | the id we send to the payment processor and acquirer | `"12345-slyellei_0"` |
316316
| **payment:processor_id** | *string* | the payment processor's id for the payment | `"123456789"` |
317+
| **payment:secondary_processor_id** | *string* | an optional secondary id for the payment from the processor. Currently only used for payments imported via the Vipps/MobilePay Report API | `"123456789"` |
317318
| **payment:settled_by_betternow** | *boolean* | If BetterNow transfers the money to you | `false` |
318319
| **payment:type** | *string* | The payment type | `"invoiced_payment"` |
319320
| **[project:html_url](#resource-common)** | *uri* | The current url to view the project page on BetterNow. This can, and does, change. Requests to old urls will be redirect to the current url. | `"https://dk.betternow.org/projects/helpnow-projekt"` |
@@ -455,6 +456,7 @@ HTTP/1.1 200 OK
455456
"custom_form_values": null,
456457
"payment": {
457458
"processor_id": "123456789",
459+
"secondary_processor_id": "123456789",
458460
"payment_id_for_processor": "12345-slyellei_0",
459461
"settled_by_betternow": false,
460462
"acquirer": "clearhaus",

source/index.html.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ any questions.
4141

4242
## Changelog
4343

44+
2026-02-25:
45+
46+
- added `secondary_processor_id` to payment object in /donation-details
47+
4448
2026-01-21:
4549

4650
- added `form_type` to /donation-details

source/schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,13 @@
579579
"string"
580580
]
581581
},
582+
"secondary_processor_id": {
583+
"description": "an optional secondary id for the payment from the processor. Currently only used for payments imported via the Vipps/MobilePay Report API",
584+
"example": "123456789",
585+
"type": [
586+
"string"
587+
]
588+
},
582589
"payment_id_for_processor": {
583590
"description": "the id we send to the payment processor and acquirer",
584591
"example": "12345-slyellei_0",

0 commit comments

Comments
 (0)