Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVP-386: Removed instrument: null #2261

Merged
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
3 changes: 1 addition & 2 deletions _includes/payer-aware-payment-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ CContent-Type: application/json;version=3.x/2.0 // Version optional for 3.0
"generatePaymentToken": true,
"language": "sv-SE", {% if documentation_section contains "checkout-v3/payments-only" %}
"productName": "Checkout3", // Removed in 3.1, can be excluded in 3.0 if version is added in header
{% endif %} {% if documentation_section contains "payment-menu" %}
"instrument": null,{% endif %}
{% endif %}
"disableStoredPaymentDetails": false,
"urls": {
"hostUrls": [ "https://example.com", "https://example.net" ], {% if include.integration_mode=="seamless-view" %}
Expand Down
2 changes: 0 additions & 2 deletions _includes/payment-order-3-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Content-Type: application/json;version=3.1{% endcapture %}
"description": "Test Purchase",
"userAgent": "Mozilla/5.0...",
"language": "sv-SE",
"instrument": null,
"urls": {
"hostUrls": [ "https://example.com", "https://example.net" ], //Seamless View only
"paymentUrl": "https://example.com/perform-payment", //Seamless View only
Expand Down Expand Up @@ -54,7 +53,6 @@ Content-Type: application/json;version=3.1{% endcapture %}
| {% icon check %} | {% f description %} | `string` | The description of the payment order. |
| {% icon check %} | {% f userAgent %} | `string` | {% include fields/user-agent.md %} |
| {% icon check %} | {% f language %} | `string` | The language of the payer. |
| | {% f instrument %} | `string` | Only used for instrument mode. Set the field to the payment instrument you wish to display. If no instrument is specified, the full payment menu will be displayed. |
| | {% f implementation %} | `string` | Indicates which implementation to use. |
| {% icon check %} | {% f urls %} | `object` | The `urls` object, containing the URLs relevant for the payment order. |
| {% icon check %} | {% f hostUrls, 2 %} | `array` | The array of URLs valid for embedding of Swedbank Pay Seamless Views. |
Expand Down
2 changes: 0 additions & 2 deletions _includes/payment-order-checkout-payments-only.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Content-Type: application/json;version=3.0 // Version optional{% endcapture
"description": "Test Purchase",
"userAgent": "Mozilla/5.0...",
"language": "sv-SE",
"instrument": null,
"productName": "Checkout3", // Removed in 3.1, can be excluded in 3.0 if version is added in header
"urls": {
"hostUrls": [ "https://example.com", "https://example.net" ], //Seamless View only
Expand Down Expand Up @@ -55,7 +54,6 @@ Content-Type: application/json;version=3.0 // Version optional{% endcapture
| {% icon check %} | {% f description %} | `string` | The description of the payment order. |
| {% icon check %} | {% f userAgent %} | `string` | {% include fields/user-agent.md %} |
| {% icon check %} | {% f language %} | `string` | The language of the payer. |
| | {% f instrument %} | `string` | Only used for instrument mode. Set the field to the payment instrument you wish to display. If no instrument is specified, the full payment menu will be displayed. |
| {% icon check %} | {% f productName %} | `string` | Used to tag the payment as Digital Payments. Mandatory for Digital Payments, as you won't get the operations in the response without submitting this field. |
| | {% f implementation %} | `string` | Indicates which implementation to use. |
| {% icon check %} | {% f urls %} | `object` | The `urls` object, containing the URLs relevant for the payment order. |
Expand Down
5 changes: 1 addition & 4 deletions _includes/payment-order-purchase.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Content-Type: application/json;version=3.x/2.0 // Version optional for 3.0
"description": "Test Purchase",
"userAgent": "Mozilla/5.0...",
"language": "sv-SE",{% if documentation_section contains "payment-menu" %}
"instrument": null,
"generatePaymentToken": {{ operation_status_bool }},{% endif %}
"generateRecurrenceToken": {{ operation_status_bool }},
"generateUnscheduledToken": {{ operation_status_bool }},
Expand Down Expand Up @@ -190,9 +189,7 @@ api-supported-versions: 3.x/2.0{% endcapture %}
| {% icon check %} | {% f currency %} | `string` | The currency of the payment. |
| {% icon check %} | {% f amount %} | `integer` | {% include fields/amount.md %} |
| {% icon check %} | {% f vatAmount %} | `integer` | {% include fields/vat-amount.md %} |
| {% icon check %} | {% f description %} | `string` | The description of the payment order. |
| {% icon check %} | {% f instrument %} | `string` | The payment instrument used. Selected by using the {% if documentation_section contains "payment-menu" %}[Instrument Mode]({{ features_url }}/optional/instrument-mode){% else %}Instrument Mode{% endif %}. |
{% if documentation_section contains "payment-menu" -%}
| {% icon check %} | {% f description %} | `string` | The description of the payment order. |{% if documentation_section contains "payment-menu" -%}
| | {% f generatePaymentToken %} | `bool` | Determines if a payment token should be generated. A payment token is used to enable future [one-click payments]({{ features_url }}/optional/one-click-payments) – with the same token. Default value is `false`. |
{% endif -%}
| | {% f generateRecurrenceToken %} | `bool` | Determines if a recurrence token should be generated. A recurrence token is primarily used to enable future [recurring payments]({{ features_url }}/optional/recur) – with the same token – through server-to-server calls. Default value is `false`. |
Expand Down
1 change: 0 additions & 1 deletion _includes/sort-order-payment-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ Content-Type: application/json;version=3.1,3.0{% endcapture %}
"description": "Test Purchase",
"userAgent": "Mozilla/5.0...",
"language": "sv-SE",
"instrument": null,
"expandFirstInstrument": true,
"restrictedToInstruments": [
"Swish",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Content-Type: application/json;version=3.1
"description": "Test App Purchase",
"userAgent": "SDK-Test",
"language": "sv-SE",
"instrument": null,
"urls": {
"hostUrls": [ "https://example.com" ],
"paymentUrl": "examplepayment://payment/",
Expand Down Expand Up @@ -212,7 +211,7 @@ CocoaPods.

The package repository URL for the SDK is
[`https://github.com/SwedbankPay/swedbank-pay-sdk-ios.git`][sdk-package-repo].
Add the `SwedbankPaySDK` library, there is no need to add the
Add the `SwedbankPaySDK` library, there is no need to add the
`SwedbankPaySDKMerchantBackend` library for the bare minimum implementation.

### CocoaPods
Expand Down Expand Up @@ -281,7 +280,7 @@ class TestConfiguration: SwedbankPaySDKConfiguration {
completion: @escaping (Result<SwedbankPaySDK.ViewConsumerIdentificationInfo, Error>) -> Void) {
completion(.failure(SwedbankPayConfigurationError.notImplemented))
}

func postPaymentorders(paymentOrder: SwedbankPaySDK.PaymentOrder?,
userData: Any?,
consumerProfileRef: String?,
Expand Down Expand Up @@ -398,4 +397,4 @@ the next chapter [Custom Backend][payemnt-url].
[custom-scheme-1]: /assets/img/mobile-sdk/ios-custom-scheme-1.png
[custom-scheme-2]: /assets/img/mobile-sdk/ios-custom-scheme-2.png
[uiappdelegate-openurl]: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application
[payemnt-url]: /checkout-v3/modules-sdks/mobile-sdk/custom-backend/#payment-url
[payemnt-url]: /checkout-v3/modules-sdks/mobile-sdk/custom-backend/#payment-url
Loading