Settings Postfinance Interface

Packagename im settings.xml: com.jaxforms.payment.provider.postfinance.CheckoutService.* 

PropertyData typeRequiredDefaultDescription

apiBaseUrl

Stringx
Basis URL für den SaferPay REST-Service

paymentCurrency

String
Wert kann in Formular/Workflow überschrieben werden

Währung für Bezahlung

userId

Stringx
Username Postfinance API

apiKey

Stringx
Passwort Postfinance API

spaceId

Stringx
Customer-ID Postfinance API

paymentMethods

Listex
Payment methods SaferPay API

dialogWidth

int

Grösse des Dialogs

transactionCompletionBehaviour

Enum (String)

COMPLETE_DEFERRED [COMPLETE_IMMEDIATELY, COMPLETE_DEFERRED, USE_CONFIGURATION]

clientCallbackSuccess

Stringx
Callback URL for Client-Confirmation (iFrame)

clientCallbackFail

Stringx
Callback URL for Client-Error (iFrame)

serverCallback

Stringx
Callback URL for Server-Confirmation (REST)

instantBatchClose

Boolean
falseBatch Closing after each Transaktion (instead of daily Closing)
Beispiel: payment-settings.xml Einstellungen
<?xml version="1.0" encoding="UTF-8"?>
<?jaxfront version=3.26.1;time=2019-04-11 16:39:07.663;xui=property.xui;xsd=property.xsd?>
<properties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="property.xsd">
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.apiBaseUrl</key>
  <value>https://checkout.postfinance.ch:443</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.paymentCurrencyValue</key>
  <value>CHF</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.userId</key>
  <value>12345</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.apiKey</key>
  <value>DEIN_API_KEY</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.spaceId</key>
  <value>12345</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.paymentMethods</key>
  <value>MASTERCARD, VISA, POSTCARD</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.dialogWidth</key>
  <value>680</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.transactionCompletionBehaviour</key>
  <value>COMPLETE_DEFERRED</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.clientCallbackSuccess</key>
  <value>http://localhost:8080/formservice/services/rest/generic/publicPage/[MANDANTNAME]/de/paymentSuccess.html</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.clientCallbackFail</key>
  <value>http://localhost:8080/formservice/services/rest/generic/publicPage/[MANDANTNAME]/de/paymentFailed.html</value>
 </property>
 <property mutable="true">
  <key>com.jaxforms.payment.provider.postfinance.CheckoutService.serverCallback</key>
  <value>http://localhost:8080/formservice/services/rest/generic/notifyPayment/[MANDANTNAME]/success</value>
 </property>
</properties>

Mapping

CheckoutDefaultJAXForms VariablenBeschreibung

customerId

"JAXForms"

paymentOrderData

Kann im CheckoutService überschrieben werden -> getCustomerId()

merchantReference

RandomUUID

paymentOrderId


language

FormInstance.language


Fixer Wert kann nicht überschrieben werden





LineItem.amountIncludingTax


paymentAmount


LineItem.name

FormInstance.toString()

paymentOrderDescription

Kann im CheckoutService überschrieben werden -> getItemName()

LineItem.quantity

1


Fixer Wert kann nicht überschrieben werden

LineItem.sku

InstanceID (Form)


Kann im CheckoutService überschrieben werden -> getSKU()

LineItem.type

"PRODUCT"


Fixer Wert kann nicht überschrieben werden

LinteItem.uniqueId

InstanceID (Form)


Fixer Wert kann nicht überschrieben werden


Workflow Action

Das E-Payment-Plugin ist als Workflow-Aktion in ein Formular eingebunden.

Weiterleitung auf deine externe Seite. Sobald die Transaktion abgeschlossen ist, kehrt man auf das Formular zurück.

SaveFormPostfinanceCheckoutForwardAction


Die Transaktion wird in einem Dialog abgehandelt.

 (Warnung) Momentan nicht unterstützt durch die Postfinance (Warnung)
SaveFormPostfinanceCheckoutModalAction

  • Keine Stichwörter