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
### Integrating Webhook Payload Signing Mechanism into webhook callback handler
131
+
132
+
The HTTP request which is sent for a state change of an entity now includes an additional field `state`, which provides information about the update of the monitored entity's state. This enhancement is a result of the implementation of our webhook encryption mechanism.
133
+
134
+
Payload field `state` provides direct information about the state update of the entity, making additional API calls to retrieve the entity state redundant.
135
+
136
+
#### ⚠️ Warning: Generic Pseudocode
137
+
138
+
> **The provided pseudocode is intentionally generic and serves to illustrate the process of enhancing your API to leverage webhook payload signing. It is not a complete implementation.**
139
+
>
140
+
> Please ensure that you adapt and extend this code to meet the specific needs of your application, including appropriate security measures and error handling.
141
+
For a detailed webhook payload signing mechanism understanding we highly recommend referring to our comprehensive
Copy file name to clipboardExpand all lines: postfinancecheckout-sdk/lib/Model/AbstractTokenUpdate.php
+5-5
Original file line number
Diff line number
Diff line change
@@ -255,7 +255,7 @@ public function getCustomerEmailAddress()
255
255
/**
256
256
* Sets customer_email_address
257
257
*
258
-
* @param string $customer_email_address The customer email address is the email address of the customer.
258
+
* @param string $customer_email_address The customer's email address.
259
259
*
260
260
* @return $this
261
261
*/
@@ -284,7 +284,7 @@ public function getCustomerId()
284
284
/**
285
285
* Sets customer_id
286
286
*
287
-
* @param string $customer_id The customer ID identifies the customer in the merchant system. In case the customer ID has been provided it has to correspond with the customer ID provided on the transaction. The customer ID will not be changed automatically. The merchant system has to provide it.
287
+
* @param string $customer_id The unique identifier of the customer in the external system.
288
288
*
289
289
* @return $this
290
290
*/
@@ -309,7 +309,7 @@ public function getEnabledForOneClickPayment()
309
309
/**
310
310
* Sets enabled_for_one_click_payment
311
311
*
312
-
* @param bool $enabled_for_one_click_payment When a token is enabled for one-click payments the buyer will be able to select the token within the iFrame or on the payment page to pay with the token. The usage of the token will reduce the number of steps the buyer has to go through. The buyer is linked via the customer ID on the transaction with the token. Means the token will be visible for buyers with the same customer ID. Additionally the payment method has to be configured to allow the one-click payments.
312
+
* @param bool $enabled_for_one_click_payment Whether the token is enabled for one-click payments, which simplify the payment process for the customer. One-click tokens are linked to customers via the customer ID.
313
313
*
314
314
* @return $this
315
315
*/
@@ -359,7 +359,7 @@ public function getTimeZone()
359
359
/**
360
360
* Sets time_zone
361
361
*
362
-
* @param string $time_zone The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.
362
+
* @param string $time_zone The customer's time zone, which affects how dates and times are formatted when communicating with the customer.
363
363
*
364
364
* @return $this
365
365
*/
@@ -384,7 +384,7 @@ public function getTokenReference()
384
384
/**
385
385
* Sets token_reference
386
386
*
387
-
* @param string $token_reference Use something that it is easy to identify and may help you find the token (e.g. customer id, email address).
387
+
* @param string $token_reference The reference used to identify the payment token (e.g. the customer's ID or email address).
* @param \PostFinanceCheckout\Sdk\Model\AddressCreate $billing_address The address associated with the payment method for invoicing and transaction processing purposes.
424
424
*
425
425
* @return $this
426
426
*/
@@ -445,7 +445,7 @@ public function getCompletionBehavior()
445
445
/**
446
446
* Sets completion_behavior
447
447
*
448
-
* @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionBehavior $completion_behavior The completion behavior controls when the transaction is completed.
448
+
* @param \PostFinanceCheckout\Sdk\Model\TransactionCompletionBehavior $completion_behavior The behavior that controls when the transaction is completed.
449
449
*
450
450
* @return $this
451
451
*/
@@ -470,7 +470,7 @@ public function getCurrency()
470
470
/**
471
471
* Sets currency
472
472
*
473
-
* @param string $currency
473
+
* @param string $currency The three-letter code (ISO 4217 format) of the transaction's currency.
474
474
*
475
475
* @return $this
476
476
*/
@@ -495,7 +495,7 @@ public function getCustomerEmailAddress()
495
495
/**
496
496
* Sets customer_email_address
497
497
*
498
-
* @param string $customer_email_address The customer email address is the email address of the customer. If no email address is provided on the shipping or billing address this address is used.
498
+
* @param string $customer_email_address The customer's email address.
499
499
*
500
500
* @return $this
501
501
*/
@@ -524,7 +524,7 @@ public function getCustomerId()
524
524
/**
525
525
* Sets customer_id
526
526
*
527
-
* @param string $customer_id
527
+
* @param string $customer_id The unique identifier of the customer in the external system.
528
528
*
529
529
* @return $this
530
530
*/
@@ -549,7 +549,7 @@ public function getFailedUrl()
549
549
/**
550
550
* Sets failed_url
551
551
*
552
-
* @param string $failed_url The user will be redirected to failed URL when the transaction could not be authorized or completed. In case no failed URL is specified a default failed page will be displayed.
552
+
* @param string $failed_url The URL to redirect the customer back to after they canceled or failed to authenticated their payment.
553
553
*
554
554
* @return $this
555
555
*/
@@ -581,7 +581,7 @@ public function getInvoiceMerchantReference()
581
581
/**
582
582
* Sets invoice_merchant_reference
583
583
*
584
-
* @param string $invoice_merchant_reference
584
+
* @param string $invoice_merchant_reference The merchant's reference used to identify the invoice.
585
585
*
586
586
* @return $this
587
587
*/
@@ -635,7 +635,7 @@ public function getLineItems()
* @param \PostFinanceCheckout\Sdk\Model\AddressCreate $shipping_address The address to where the order will be shipped.
718
718
*
719
719
* @return $this
720
720
*/
@@ -739,7 +739,7 @@ public function getShippingMethod()
739
739
/**
740
740
* Sets shipping_method
741
741
*
742
-
* @param string $shipping_method
742
+
* @param string $shipping_method The name of the shipping method used to ship the products.
743
743
*
744
744
* @return $this
745
745
*/
@@ -768,7 +768,7 @@ public function getSuccessUrl()
768
768
/**
769
769
* Sets success_url
770
770
*
771
-
* @param string $success_url The user will be redirected to success URL when the transaction could be authorized or completed. In case no success URL is specified a default success page will be displayed.
771
+
* @param string $success_url The URL to redirect the customer back to after they successfully authenticated their payment.
772
772
*
773
773
* @return $this
774
774
*/
@@ -800,7 +800,7 @@ public function getTimeZone()
800
800
/**
801
801
* Sets time_zone
802
802
*
803
-
* @param string $time_zone The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.
803
+
* @param string $time_zone The customer's time zone, which affects how dates and times are formatted when communicating with the customer.
804
804
*
805
805
* @return $this
806
806
*/
@@ -825,7 +825,7 @@ public function getToken()
825
825
/**
826
826
* Sets token
827
827
*
828
-
* @param int $token
828
+
* @param int $token The payment token that should be used to charge the customer.
829
829
*
830
830
* @return $this
831
831
*/
@@ -850,7 +850,7 @@ public function getTokenizationMode()
850
850
/**
851
851
* Sets tokenization_mode
852
852
*
853
-
* @param \PostFinanceCheckout\Sdk\Model\TokenizationMode $tokenization_mode The tokenization mode controls if and how the tokenization of payment information is applied to the transaction.
853
+
* @param \PostFinanceCheckout\Sdk\Model\TokenizationMode $tokenization_mode The tokenization mode specifies whether and how the tokenization of payment information is applied to the transaction.
0 commit comments