|
152 | 152 | "post": { |
153 | 153 | "operationId": "CreateCheckout", |
154 | 154 | "summary": "Create a checkout", |
155 | | - "description": "Creates a new payment checkout resource. The unique `checkout_reference` created by this request, is used for further manipulation of the checkout.\n\nFor 3DS checkouts, add the `redirect_url` parameter to your request body schema.\n\nFollow by processing a checkout to charge the provided payment instrument.", |
| 155 | + "description": "Creates a new payment checkout resource. The unique `checkout_reference` created by this request, is used for further manipulation of the checkout.\n\nFor 3DS checkouts, add the `redirect_url` parameter to your request body schema.\nTo use the [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) page, set the `hosted_checkout.enabled` to `true`.\n\nFollow by processing a checkout to charge the provided payment instrument.", |
156 | 156 | "requestBody": { |
157 | 157 | "description": "Details for creating a checkout resource.", |
158 | 158 | "required": true, |
|
196 | 196 | "merchant_code": "MH4H92C7", |
197 | 197 | "redirect_url": "https://mysite.com/completed_purchase" |
198 | 198 | } |
| 199 | + }, |
| 200 | + "HostedCheckout": { |
| 201 | + "description": "Create a checkout with a SumUp-hosted payment page", |
| 202 | + "x-beta": true, |
| 203 | + "value": { |
| 204 | + "checkout_reference": "b50pr914-6k0e-3091-a592-890010285b3d", |
| 205 | + "amount": 12, |
| 206 | + "currency": "EUR", |
| 207 | + "merchant_code": "MCXXXXXX", |
| 208 | + "description": "A sample checkout", |
| 209 | + "hosted_checkout": { |
| 210 | + "enabled": true |
| 211 | + } |
| 212 | + } |
199 | 213 | } |
200 | 214 | } |
201 | 215 | } |
|
316 | 330 | } |
317 | 331 | ] |
318 | 332 | } |
| 333 | + }, |
| 334 | + "HostedCheckout": { |
| 335 | + "description": "Response body for a checkout with a SumUp-hosted payment page", |
| 336 | + "value": { |
| 337 | + "checkout_reference": "b50pr914-6k0e-3091-a592-890010285b3d", |
| 338 | + "amount": 12, |
| 339 | + "currency": "EUR", |
| 340 | + "merchant_code": "MCXXXXXX", |
| 341 | + "merchant_country": "DE", |
| 342 | + "merchant_name": "Sample Shop", |
| 343 | + "description": "A sample checkout", |
| 344 | + "id": "64553e20-3f0e-49e4-8af3-fd0eca86ce91", |
| 345 | + "status": "PENDING", |
| 346 | + "date": "2000-01-01T12:49:24.899+00:00", |
| 347 | + "purpose": "CHECKOUT", |
| 348 | + "hosted_checkout": { |
| 349 | + "enabled": true |
| 350 | + }, |
| 351 | + "hosted_checkout_url": "https://checkout.sumup.com/pay/8f9316a3-cda9-42a9-9771-54d534315676", |
| 352 | + "transactions": [] |
| 353 | + } |
319 | 354 | } |
320 | 355 | } |
321 | 356 | } |
|
6610 | 6645 | }, |
6611 | 6646 | "title": "ELV Card Account" |
6612 | 6647 | }, |
| 6648 | + "HostedCheckout": { |
| 6649 | + "description": "Hosted Checkout configuration. Enable it to receive a SumUp-hosted payment page URL in the checkout response.", |
| 6650 | + "type": "object", |
| 6651 | + "properties": { |
| 6652 | + "enabled": { |
| 6653 | + "description": "Whether the checkout should include a SumUp-hosted payment page.", |
| 6654 | + "type": "boolean", |
| 6655 | + "example": true |
| 6656 | + } |
| 6657 | + }, |
| 6658 | + "required": [ |
| 6659 | + "enabled" |
| 6660 | + ], |
| 6661 | + "title": "Hosted Checkout" |
| 6662 | + }, |
6613 | 6663 | "Checkout": { |
6614 | 6664 | "description": "Core checkout resource returned by the Checkouts API. A checkout is created before payment processing and then updated as payment attempts, redirects, and resulting transactions are attached to it.", |
6615 | 6665 | "type": "object", |
|
6683 | 6733 | "mandate": { |
6684 | 6734 | "$ref": "#/components/schemas/MandateResponse" |
6685 | 6735 | }, |
| 6736 | + "hosted_checkout_url": { |
| 6737 | + "description": "URL of the SumUp-hosted payment page that handles the payment flow. Returned when Hosted Checkout is enabled for the checkout.", |
| 6738 | + "type": "string", |
| 6739 | + "format": "uri", |
| 6740 | + "example": "https://checkout.sumup.com/pay/8f9316a3-cda9-42a9-9771-54d534315676", |
| 6741 | + "readOnly": true |
| 6742 | + }, |
6686 | 6743 | "transactions": { |
6687 | 6744 | "description": "Payment attempts and resulting transaction records linked to this checkout. Use the Transactions endpoints when you need the authoritative payment result and event history.", |
6688 | 6745 | "type": "array", |
|
6778 | 6835 | "description": "URL where the payer should be sent after a redirect-based payment or SCA flow completes. This is required for [APMs](https://developer.sumup.com/online-payments/apm/introduction) and recommended for card checkouts that may require [3DS](https://developer.sumup.com/online-payments/features/3ds). If it is omitted, the [Payment Widget](https://developer.sumup.com/online-payments/checkouts) can render the challenge in an iframe instead of using a full-page redirect.", |
6779 | 6836 | "type": "string", |
6780 | 6837 | "example": "https://mysite.com/completed_purchase" |
| 6838 | + }, |
| 6839 | + "hosted_checkout": { |
| 6840 | + "$ref": "#/components/schemas/HostedCheckout" |
6781 | 6841 | } |
6782 | 6842 | }, |
6783 | 6843 | "required": [ |
|
10449 | 10509 | "merchant_code": "MH4H92C7", |
10450 | 10510 | "redirect_url": "https://mysite.com/completed_purchase" |
10451 | 10511 | } |
| 10512 | + }, |
| 10513 | + "HostedCheckout": { |
| 10514 | + "description": "Create a checkout with a SumUp-hosted payment page", |
| 10515 | + "x-beta": true, |
| 10516 | + "value": { |
| 10517 | + "checkout_reference": "b50pr914-6k0e-3091-a592-890010285b3d", |
| 10518 | + "amount": 12, |
| 10519 | + "currency": "EUR", |
| 10520 | + "merchant_code": "MCXXXXXX", |
| 10521 | + "description": "A sample checkout", |
| 10522 | + "hosted_checkout": { |
| 10523 | + "enabled": true |
| 10524 | + } |
| 10525 | + } |
10452 | 10526 | } |
10453 | 10527 | } |
10454 | 10528 | } |
|
10709 | 10783 | } |
10710 | 10784 | ] |
10711 | 10785 | } |
| 10786 | + }, |
| 10787 | + "HostedCheckout": { |
| 10788 | + "description": "Response body for a checkout with a SumUp-hosted payment page", |
| 10789 | + "value": { |
| 10790 | + "checkout_reference": "b50pr914-6k0e-3091-a592-890010285b3d", |
| 10791 | + "amount": 12, |
| 10792 | + "currency": "EUR", |
| 10793 | + "merchant_code": "MCXXXXXX", |
| 10794 | + "merchant_country": "DE", |
| 10795 | + "merchant_name": "Sample Shop", |
| 10796 | + "description": "A sample checkout", |
| 10797 | + "id": "64553e20-3f0e-49e4-8af3-fd0eca86ce91", |
| 10798 | + "status": "PENDING", |
| 10799 | + "date": "2000-01-01T12:49:24.899+00:00", |
| 10800 | + "purpose": "CHECKOUT", |
| 10801 | + "hosted_checkout": { |
| 10802 | + "enabled": true |
| 10803 | + }, |
| 10804 | + "hosted_checkout_url": "https://checkout.sumup.com/pay/8f9316a3-cda9-42a9-9771-54d534315676", |
| 10805 | + "transactions": [] |
| 10806 | + } |
10712 | 10807 | } |
10713 | 10808 | } |
10714 | 10809 | } |
|
0 commit comments