Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction and caused issue

Current web browsers are more and more going to block so called third party cookies to increase privacy of the internet user. However, a lot of shop implementations rely on a session handling where the sessionId is stored in such a cookie.

By blocking these cookies the merchant's shop looses the information (e.g. SessionId) when the consumer has been redirected to the 

Multiexcerpt include
MultiExcerptNamePartner-Name
PageWithExcerptWording
payment pages and is returning back to the shop after the payment has been completed.

Possible solutions

Multiexcerpt include
MultiExcerptNamePlatform-Name
PageWithExcerptWording
 parameter "Custom"

You can use the 

Multiexcerpt include
MultiExcerptNamePlatform-Name
PageWithExcerptWording
parameter "Custom" to pass any customized parameter (like sessionId or more) to 
Multiexcerpt include
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
and 
Multiexcerpt include
MultiExcerptNamePlatform-Kurz
PageWithExcerptWording
returns your "Custom"-values when consumer returns to your shop.

...

Sample for response: sessionId=123&customerId=456

Additional redirect after consumer returns in your shop

After a successful payment the consumer is redirected to the URL "URLSuccess" that you provided in the payment request.

...

Once you initiate a second redirect within your shop just after the consumer has been redirected the cookie will be loaded – because this redirect has been initiated by the original site.

Changing the cookie definition

Upgrading the cookie definition to explicitly allow third-party-cookies. Please consider browser compatibility when using this option.

...

AttributeDescription
sessionIdKey and value you would like to store within the cookie, e.g. sessionId, sessionid, id, SESSIONID, ...
DomainBest practice: Ensures that the web browser will only read cookie values stored by this domain (e.g. shop.merchant.com)
PathBest practice: This path must exist in the URL – otherwise the browser won't send the cookie
HttpOnlyBest practice: Ensures that JavaScript can not access the cookie
SecureBest practice: The cookie will only be sent to the server when request is done via https – ensuring that confidential information is sent unencrypted via http.
SameSiteNew: This attribute disables the third-party-cookie blocking so the information will be available after the consumer returns to your shop. Please note that this attributes only works if Secure is used, too.

Affected implementations

  • Credit card payment form "paySSL.aspx"
  • Hosted payment page "paymentPage.aspx"

...