From 80f6c3027c18d0e1405cbce51541ee9e07fbd4a1 Mon Sep 17 00:00:00 2001 From: Dirk Ehrhardt Date: Fri, 26 Sep 2025 11:49:10 +0200 Subject: [PATCH] feat: add required parameters for PayPal integration --- .../models/PaymentProduct840SpecificOutput.py | 1 + .../RedirectPaymentProduct840SpecificInput.py | 20 +++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/pcp_serversdk_python/models/PaymentProduct840SpecificOutput.py b/pcp_serversdk_python/models/PaymentProduct840SpecificOutput.py index b126ff0..ff2ed9b 100644 --- a/pcp_serversdk_python/models/PaymentProduct840SpecificOutput.py +++ b/pcp_serversdk_python/models/PaymentProduct840SpecificOutput.py @@ -7,6 +7,7 @@ @dataclass(kw_only=True) class PaymentProduct840SpecificOutput: + payPalTransactionId: str billingAddress: Optional[Address] = None customerAccount: Optional[PaymentProduct840CustomerAccount] = None shippingAddress: Optional[Address] = None diff --git a/pcp_serversdk_python/models/RedirectPaymentProduct840SpecificInput.py b/pcp_serversdk_python/models/RedirectPaymentProduct840SpecificInput.py index c8038de..3c1599d 100644 --- a/pcp_serversdk_python/models/RedirectPaymentProduct840SpecificInput.py +++ b/pcp_serversdk_python/models/RedirectPaymentProduct840SpecificInput.py @@ -4,9 +4,25 @@ @dataclass(kw_only=True) class RedirectPaymentProduct840SpecificInput: - """Object containing specific input required for PayPal payments (Payment product ID 840)""" + """ + Object containing specific input required for PayPal payments + (Payment product ID 840) + """ addressSelectionAtPayPal: Optional[bool] = False fraudNetId: Optional[str] = ( - None # A unique ID determined by the merchant, to link a Paypal transaction to a FraudNet PayPal risk session. Only applicable to customer-initiated transactions, when the FraudNet SDK is used, and to be passed in the API request the same tracking ID value (FraudNet Session Identifier). + None # A unique ID determined by the merchant, to link a Paypal transaction + # to a FraudNet PayPal risk session. Only applicable to customer-initiated + # transactions, when the FraudNet SDK is used, and to be passed in the API + # request the same tracking ID value (FraudNet Session Identifier). + ) + javaScriptSdkFlow: bool = ( + True # Required parameter which defines how PayPal is being integrated + # inside the checkout page. True = the current integration uses PayPal SDK, + # False = classic usage with PayPal Redirect flow + ) + action: Optional[str] = ( + None # Required parameter for a COMPLETE CALL (not only an ORDER CALL) + # which one value "CONFIRM_ORDER_STATUS" signals process is finished + # on merchant side )