You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## [3.4.9] - 2025-04-22
8
+
### Added
9
+
- Provide `setCustomerCreatedDate` method to set `extra_merchant_data` for the `createPaymentRequest` callback config.
10
+
- Include `AuthorisationExpiryDate` in `Transaction` class.
11
+
7
12
## [3.4.8] - 2025-03-13
8
13
### Added
9
14
- Provide `setClientJavaEnabled` and `setClientColorDepth` methods to set `customer_info[client_java_enabled]` and `customer_info[client_color_depth]` for the customer object.
Copy file name to clipboardExpand all lines: docs/ecommerce/payment_request.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Because this call does not happen in the browser, you do not need to worry about
10
10
* [Example](#example)
11
11
+[Optional](#optional)
12
12
*[Optional parameters for invoice payments](#optional-parameters-for-invoice-payments)
13
+
*[Extra merchant data](#extra-merchant-data)
13
14
+[Required on specific payments](#required-on-specific-payments)
14
15
*[Mandatory parameters if MCC is 6012](#mandatory-parameters-if-mcc-is-6012)
15
16
*[Mandatory parameters for invoice payments](#mandatory-parameters-for-invoice-payments)
@@ -73,8 +74,10 @@ $request->setCurrency('SEK');
73
74
| setCookie(string) | Additionally a cookie parameter can be sent to createPaymentRequest, which is then passed back as the complete cookie for the callbacks.<br />For example, if the cookie parameter is set to: "PHPSESSID=asdfasdfdf23; mycookie=mycookievalue", the Cookie header in the callback to your page will be:<br />Cookie: PHPSESSID=asdfasdfdf23; mycookie=mycookievalue | string
74
75
| setPaymentSource(string) | The source of the payment. Default is "eCommerce" | string - [See Payment sources](../types/paymentsources.md)
| setCustomerCreatedDate(Date) | This is the date when the customer account was first created in your shopping system. Fraud detection services use this parameter in the fraud detection calculations. | Date (yyyy-mm-dd)
76
78
| setConfig(Config) | used to overwrite the terminal settings | Config object [See config](../request/config.md)
77
-
| orderLines(array or OrderLine) | Order lines | array of OrderLine objects - [See OrderLine](../request/orderline.md)
79
+
| setOrderLines(array) | Order lines | array of OrderLine objects - [See OrderLine](../request/orderline.md)
80
+
| setAgreement(array) | This parameters should be provided only in case the type parameter is subscription, subscriptionAndCharge or subscriptionAndReserve | array
78
81
79
82
##### Optional parameters for invoice payments
80
83
@@ -83,6 +86,12 @@ $request->setCurrency('SEK');
83
86
| setOrganisationNumber(string) | If the organisation_number parameter is given the organisation number field in the invoice payment form is pre-populated, and if no other payment options is enabled on the terminal the form will auto submit. | string
84
87
| setAccountOffer(string) | To require having account enabled for an invoice payment for this specific customer, set this to required. To disable account for this specific customer, set to disabled. | string
85
88
89
+
##### Extra merchant data
90
+
91
+
| Method | Description | Type |
92
+
|---|---|---|
93
+
| setExtraMerchantData(JSON) | Additional merchant provided information that will be passed to Klarna. Field has to be sent as JSON object specified in [Klarna docs](https://docs.klarna.com/api/extra-merchant-data/)| JSON ([Schema](https://docs.klarna.com/api/extra-merchant-data.json))
0 commit comments