Skip to content

Commit

Permalink
Merge pull request #56 from saferpay/feature/update-v1.39
Browse files Browse the repository at this point in the history
Readd styling container to some API methods
  • Loading branch information
najo4594 authored Mar 13, 2024
2 parents cdfeef5 + 4132ba8 commit 22f5d42
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 5 deletions.
6 changes: 1 addition & 5 deletions texts/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@
- available on Sandbox: 2024-03-01
- introduced version 1.39
- added value `1.39` for _SpecVersion_
- removed `Styling` container from following requests in all API versions:
- [PaymentPage/Initialize](index.html#Payment_v1_PaymentPage_Initialize)
- [Transaction/Initialize](index.html#Payment_v1_Transaction_Initialize)
- [Transaction/RedirectPayment](index.html#Payment_v1_Transaction_RedirectPayment)
- [SecureCardData/AliasInsert](index.html#Payment_v1_Alias_Insert)
- removed `Styling` container from [PaymentPage/Initialize](index.html#Payment_v1_PaymentPage_Initialize) in all API versions
- [PaymentPage/Assert](index.html#Payment_v1_PaymentPage_Assert) can now be called up to 120 hours for pending transactions (instead of 96 hours before)
- removed `Transaction/QueryPaymentMeans` and `Transaction/AdjustAmount` methods from Saferpay Payment API
- added `MandatoryFields` field to _BillingAddressForm_ container in [SecurePayGate Create SingleUsePaymentLink](index.html#rest_customers_[customerId]_terminals_[terminalId]_spg-offers)
Expand Down
14 changes: 14 additions & 0 deletions texts/ChapterAliasStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,20 @@ Possible values: CARD, BANK_ACCOUNT, POSTFINANCE, TWINT.<br />
<div style="padding-bottom: 10px">URL which is used to redirect the payer back to the shop.<br><br>This Url is used by Saferpay to redirect the shopper back to the merchant shop. You may add query string parameters to identify your session, but please be aware that the shopper could modify these parameters inside the browser!<br> The whole url including query string parameters should be as short as possible to prevent issues with specific browsers and must not exceed 2000 characters.<br> Note: you should not add sensitive data to the query string, as its contents is plainly visible inside the browser and will be logged by our web servers.</div>
<i class="small text-muted">
</i>
</td>
</tr>
<tr>
<td class="col-sm-4 text-right">
<strong>Styling</strong><br />
<span class="text-muted small">
<a class="type-details in" href="#Payment_Models_Data_ExtendedStyling">object</a>
</span>
</td>
<td class="col-sm-8">
<div style="padding-bottom: 10px">Custom styling resource for the Hosted Register form.</div>
<i class="small text-muted">
</i>
</td>
</tr>
<tr>
Expand Down
31 changes: 31 additions & 0 deletions texts/ChapterTransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,20 @@ Numeric[8..8]<br />
<div style="padding-bottom: 10px">URL which is used to redirect the payer back to the shop if the transaction requires some kind of browser redirection (3d-secure, dcc)<br><br>This Url is used by Saferpay to redirect the shopper back to the merchant shop. You may add query string parameters to identify your session, but please be aware that the shopper could modify these parameters inside the browser!<br> The whole url including query string parameters should be as short as possible to prevent issues with specific browsers and must not exceed 2000 characters.<br> Note: you should not add sensitive data to the query string, as its contents is plainly visible inside the browser and will be logged by our web servers.</div>
<i class="small text-muted">
</i>
</td>
</tr>
<tr>
<td class="col-sm-4 text-right">
<strong>Styling</strong><br />
<span class="text-muted small">
<a class="type-details in" href="#Payment_Models_Data_ExtendedStyling">object</a>
</span>
</td>
<td class="col-sm-8">
<div style="padding-bottom: 10px">Styling options</div>
<i class="small text-muted">
</i>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -289,6 +303,9 @@ Possible values: AMEX, BANCONTACT, BONUS, DINERS, DIRECTDEBIT, JCB, MAESTRO, MAS
},
"ReturnUrl": {
"Url": "[your shop payment url]"
},
"Styling": {
"CssUrl": "[your shop css url]"
}
}
</pre>
Expand Down Expand Up @@ -3423,6 +3440,20 @@ Possible values: PAYPAL, POSTCARD, POSTFINANCE.<br />
<div style="padding-bottom: 10px">URL which is used to redirect the payer back to the shop if the transaction requires some kind of browser redirection (3d-secure, dcc)<br><br>This Url is used by Saferpay to redirect the shopper back to the merchant shop. You may add query string parameters to identify your session, but please be aware that the shopper could modify these parameters inside the browser!<br> The whole url including query string parameters should be as short as possible to prevent issues with specific browsers and must not exceed 2000 characters.<br> Note: you should not add sensitive data to the query string, as its contents is plainly visible inside the browser and will be logged by our web servers.</div>
<i class="small text-muted">
</i>
</td>
</tr>
<tr>
<td class="col-sm-4 text-right">
<strong>Styling</strong><br />
<span class="text-muted small">
<a class="type-details in" href="#Payment_Models_Data_ExtendedStyling">object</a>
</span>
</td>
<td class="col-sm-8">
<div style="padding-bottom: 10px">Custom styling resource</div>
<i class="small text-muted">
</i>
</td>
</tr>
<tr>
Expand Down
48 changes: 48 additions & 0 deletions texts/ContainerDictionary.md
Original file line number Diff line number Diff line change
Expand Up @@ -3076,6 +3076,54 @@ Iso885915[1..100]<br />
<div style="padding-bottom: 10px">Creditor id, required for german direct debit payments.</div>
<i class="small text-muted">
</i>
</td>
</tr>
</tbody>
</table>
<h2>Container "Payment_Models_Data_ExtendedStyling"</h2>
<table class="table" id="Payment_Models_Data_ExtendedStyling">
<tbody>
<tr>
<td class="col-sm-4 text-right">
<strong>Theme</strong><br />
<span class="text-muted small">
string
</span>
</td>
<td class="col-sm-8">
<div style="padding-bottom: 10px">This parameter let you customize the appearance of the displayed payment pages. Per default a lightweight responsive styling will be applied.<br> If you don't want any styling use 'NONE'.</div>
<i class="small text-muted">
Possible values: DEFAULT, SIX, NONE.<br />
<span>Example: <code>DEFAULT</code></span>
</i>
</td>
</tr>
<tr>
<td class="col-sm-4 text-right">
<strong>CssUrl</strong><br />
<span class="text-muted small">
string
</span>
</td>
<td class="col-sm-8">
<div style="padding-bottom: 10px">Custom styling resource (url) which will be referenced in web pages displayed by Saferpay to apply your custom styling.<br> This file must be hosted on a SSL/TLS secured web server (the url must start with https://).<br> If a custom CSS is provided, any design related settings set in the payment page config (PPConfig) will be ignored and the default design will be used.</div>
<i class="small text-muted">
Max length: 2000<br />
<span>Example: <code>https://merchanthost/merchant.css</code></span>
</i>
</td>
</tr>
<tr>
<td class="col-sm-4 text-right">
<strong>ContentSecurityEnabled</strong><br />
<span class="text-muted small">
boolean
</span>
</td>
<td class="col-sm-8">
<div style="padding-bottom: 10px">When enabled, then ContentSecurity/SAQ-A is requested, which leads to the CSS being loaded from the saferpay server.</div>
<i class="small text-muted">
</i>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 22f5d42

Please sign in to comment.