<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://string.drv.de/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Neudeckh</id>
	<title>DRV STRING - Benutzerbeiträge [de]</title>
	<link rel="self" type="application/atom+xml" href="http://string.drv.de/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Neudeckh"/>
	<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php/Spezial:Beitr%C3%A4ge/Neudeckh"/>
	<updated>2026-10-22T23:48:31Z</updated>
	<subtitle>Benutzerbeiträge</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Developers_Area&amp;diff=607</id>
		<title>Developers Area</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Developers_Area&amp;diff=607"/>
		<updated>2019-10-14T15:15:29Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== TODOs for the upcoming &amp;quot;Developer Camp&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
* Create proof of concept application with STRING. &lt;br /&gt;
** Amadeus creates frontend (Martin)&lt;br /&gt;
** DaVinci / Phoenix Unlimited run as backends &lt;br /&gt;
* Create consistent style guide and apply to schemas&lt;br /&gt;
* Discuss authorization for STRING &lt;br /&gt;
** Built-in and/or HTTP based (e.g. OAuth2,...)&lt;br /&gt;
** Describe best/preferred practices&lt;br /&gt;
* Create external lists in for non trivial enums &lt;br /&gt;
** Reference and document in schema&lt;br /&gt;
** Make downloadable from wiki&lt;br /&gt;
* Documentation&lt;br /&gt;
** Further completion of in-schema documentation&lt;br /&gt;
** Further completion of wiki documentation&lt;br /&gt;
** Reference wiki documentation in schema where applicable&lt;br /&gt;
* Model and document ConfigurationRequest and ConfigurationResponse&lt;br /&gt;
* Discuss payment models&lt;br /&gt;
* Create table or graph of possible request-response sequences&lt;br /&gt;
* Simulate/Test workflow for cruises (Desktop Test)&lt;br /&gt;
* Create JIRA backlog for the tasks that cannot be completed&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=569</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=569"/>
		<updated>2018-07-11T17:05:18Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* CreditCardPaymentType */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is an &amp;quot;empty&amp;quot; specialization of the base &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. In case of an invoice payment this information is sufficient here  because &#039;&#039;&#039;InvoiceAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039; provides the informtion on a possible invoice recipient. If this information should not be present the invoice is to be addressed to the booking owner, which is a mandatory information provided by &#039;&#039;&#039;BookingOwnerAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|533px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is the PaymentType extended with credit card or PCI token information. &#039;&#039;&#039;PCIToken&#039;&#039;&#039;, &#039;&#039;&#039;PCITokenIssuer&#039;&#039;&#039; and &#039;&#039;&#039;PCIBin&#039;&#039;&#039; are used when credit card tokenization is involved.&lt;br /&gt;
&lt;br /&gt;
The credit card information shown here is mostly self-explanatory, only the &#039;&#039;&#039;CreditCard&#039;&#039;&#039; element respectively &#039;&#039;&#039;CreditCardType&#039;&#039;&#039; needs a more detailed explanation.&lt;br /&gt;
&lt;br /&gt;
[[Datei:CreditCard.JPG|287px|rahmenlos]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:CreditCard.JPG&amp;diff=568</id>
		<title>Datei:CreditCard.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:CreditCard.JPG&amp;diff=568"/>
		<updated>2018-07-11T17:02:53Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:CreditCardPaymentType.JPG&amp;diff=567</id>
		<title>Datei:CreditCardPaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:CreditCardPaymentType.JPG&amp;diff=567"/>
		<updated>2018-07-11T16:59:19Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: Neudeckh lud eine neue Version von Datei:CreditCardPaymentType.JPG hoch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=566</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=566"/>
		<updated>2018-07-11T16:52:48Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* CreditCardPaymentType */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is an &amp;quot;empty&amp;quot; specialization of the base &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. In case of an invoice payment this information is sufficient here  because &#039;&#039;&#039;InvoiceAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039; provides the informtion on a possible invoice recipient. If this information should not be present the invoice is to be addressed to the booking owner, which is a mandatory information provided by &#039;&#039;&#039;BookingOwnerAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is the PaymentType extended with credit card or PCI token information. &#039;&#039;&#039;PCIToken&#039;&#039;&#039;, &#039;&#039;&#039;PCITokenIssuer&#039;&#039;&#039; and &#039;&#039;&#039;PCIBin&#039;&#039;&#039; are used when credit card tokenization is involved.&lt;br /&gt;
&lt;br /&gt;
The credit card information shown here is mostly self-explanatory, only the &#039;&#039;&#039;CreditCard&#039;&#039;&#039; element respectively &#039;&#039;&#039;CreditCardType&#039;&#039;&#039; needs a more detailed explanation.&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=565</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=565"/>
		<updated>2018-07-11T15:15:43Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* InvoicePaymentType */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is an &amp;quot;empty&amp;quot; specialization of the base &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. In case of an invoice payment this information is sufficient here  because &#039;&#039;&#039;InvoiceAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039; provides the informtion on a possible invoice recipient. If this information should not be present the invoice is to be addressed to the booking owner, which is a mandatory information provided by &#039;&#039;&#039;BookingOwnerAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=564</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=564"/>
		<updated>2018-07-10T17:56:18Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* InvoicePaymentType */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is an &amp;quot;empty&amp;quot; specialization of the base &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. In case of an invoice payment this information is sufficient here  because &#039;&#039;&#039;InvoiceAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039; provides the informtion on a possible innvoice recipient. If this information should not be present the invoice is to be addressed to the booking owner, which is a mandatory information provided by &#039;&#039;&#039;BookingOwnerAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetails&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=563</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=563"/>
		<updated>2018-07-10T15:31:20Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* InvoicePaymentType */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is an &amp;quot;empty&amp;quot; specialization of the base &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, which is sufficient here. That because &#039;&#039;&#039;InvoiceAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetaila&#039;&#039;&#039; provides the informtion on a possible innvoice recieptend. If this information should not be present the information on the booking owner (=&amp;gt; &#039;&#039;&#039;BookingOwnerAddress&#039;&#039;&#039;) will be relevant.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=562</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=562"/>
		<updated>2018-07-10T15:10:37Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* InvoicePaymentType */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is an &amp;quot;empty&amp;quot; specialization of the base &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, which is sufficiant here. That because in &#039;&#039;&#039;InvoiceAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetaila&#039;&#039;&#039; the informtion on a possible innvoice recieptend can be found. If this information should not be present the information on the booking owner (=&amp;gt; &#039;&#039;&#039;BookingOwnerAddress&#039;&#039;&#039;) will be relevant.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=561</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=561"/>
		<updated>2018-07-10T15:10:23Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* InvoicePaymentType */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is an &amp;quot;empty&amp;quot; specialization of the base &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, which is sufficiant here. That because in &#039;&#039;&#039;InvoiceAddress&#039;&#039;&#039; in the &#039;&#039;&#039;BookingDetaila&#039;&#039;&#039; the informtion on a possible innvoice recieptend can be found. If this information should not be present the information on the booking owner (=&amp;gt; &#039;&#039;&#039;BookingOwnerAddress&#039;&#039;&#039;) will be relevant.&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=560</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=560"/>
		<updated>2018-07-10T14:54:55Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter [[Payment_Handling#Specialized payment request types |Specialized payment request types]], &#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=559</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=559"/>
		<updated>2018-07-10T14:50:44Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter PaymentOptions]], please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=558</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=558"/>
		<updated>2018-07-08T13:08:28Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installment&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=557</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=557"/>
		<updated>2018-07-08T12:35:32Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Specialized payment request types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|509px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
[[Datei:CreditCardPaymentType.JPG|674px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
[[Datei:DirectDebitPaymentType.JPG|667px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
[[Datei:EBankingPaymentType.JPG|670px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
[[Datei:EWalletPaymentType.JPG|412px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
[[Datei:InstallmentPaymentType.JPG|653px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
[[Datei:VoucherPaymentType.JPG|447px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=556</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=556"/>
		<updated>2018-07-08T12:28:38Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Specialized payment request types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the payment request types listed hereafter are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
[[Datei:InvoicePaymentType.JPG|px509|rahmenlos]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=555</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=555"/>
		<updated>2018-07-06T17:22:40Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Payment Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Specialized payment request types ====&lt;br /&gt;
As mentioned above, all the following listed payment request types are specializations of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. So in the following only the respective extensions will be shown and if so explained more in detail.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
===== InvoicePaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CreditCardPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DirectDebitingPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EBankingPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== EWalletPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== InstallmentPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== VoucherPaymentType =====&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=554</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=554"/>
		<updated>2018-07-06T17:10:06Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Payment Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
A payment request indeed is realized as a variant of &#039;&#039;&#039;PaymentType&#039;&#039;&#039;. To be more precise, a specialization of &#039;&#039;&#039;PaymentType&#039;&#039;&#039; depending on the chosen &#039;&#039;Form Of Payment&#039;&#039; will be used respectively.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The available specialized payment types are listed in ###. But at first we will look onto the base type.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=553</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=553"/>
		<updated>2018-07-06T08:07:32Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentDetails */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=552</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=552"/>
		<updated>2018-07-06T08:07:10Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentDetails */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:InvoicePaymentType.JPG&amp;diff=551</id>
		<title>Datei:InvoicePaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:InvoicePaymentType.JPG&amp;diff=551"/>
		<updated>2018-07-06T07:57:41Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:CreditCardPaymentType.JPG&amp;diff=550</id>
		<title>Datei:CreditCardPaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:CreditCardPaymentType.JPG&amp;diff=550"/>
		<updated>2018-07-06T07:53:42Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:DirectDebitPaymentType.JPG&amp;diff=549</id>
		<title>Datei:DirectDebitPaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:DirectDebitPaymentType.JPG&amp;diff=549"/>
		<updated>2018-07-06T07:53:01Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:EBankingPaymentType.JPG&amp;diff=548</id>
		<title>Datei:EBankingPaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:EBankingPaymentType.JPG&amp;diff=548"/>
		<updated>2018-07-06T07:51:28Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:EWalletPaymentType.JPG&amp;diff=547</id>
		<title>Datei:EWalletPaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:EWalletPaymentType.JPG&amp;diff=547"/>
		<updated>2018-07-06T07:51:05Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:InstallmentPaymentType.JPG&amp;diff=546</id>
		<title>Datei:InstallmentPaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:InstallmentPaymentType.JPG&amp;diff=546"/>
		<updated>2018-07-06T07:50:42Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:VoucherPaymentType.JPG&amp;diff=545</id>
		<title>Datei:VoucherPaymentType.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:VoucherPaymentType.JPG&amp;diff=545"/>
		<updated>2018-07-06T07:50:01Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=544</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=544"/>
		<updated>2018-07-06T07:47:44Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentOverview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=543</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=543"/>
		<updated>2018-07-06T07:47:27Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentOptions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=542</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=542"/>
		<updated>2018-07-06T07:35:27Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Payments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=541</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=541"/>
		<updated>2018-07-06T07:27:49Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* General information */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=540</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=540"/>
		<updated>2018-07-05T17:52:04Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* CashHolder */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=539</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=539"/>
		<updated>2018-07-05T17:51:49Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* CashHolder */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=538</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=538"/>
		<updated>2018-07-05T16:52:32Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the Tour Operator is communicated by him via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=537</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=537"/>
		<updated>2018-07-05T16:48:25Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Payment Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the TO is communicated by the TO via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=536</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=536"/>
		<updated>2018-07-05T16:47:37Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the TO is communicated by the TO via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chapter]] of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=535</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=535"/>
		<updated>2018-07-05T16:46:25Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the TO is communicated by the TO via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see [[Payment_Handling#PaymentOptions|chappi]]chapter of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=534</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=534"/>
		<updated>2018-07-05T16:35:06Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Payment Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the TO is communicated by the TO via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see chapter of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=533</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=533"/>
		<updated>2018-07-05T16:34:01Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the TO is communicated by the TO via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see chapter of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=532</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=532"/>
		<updated>2018-07-05T16:27:59Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Payment Request */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the TO is communicated by the TO via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see below chapter of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=531</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=531"/>
		<updated>2018-07-05T16:27:23Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed, which are mostly self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Which of these are supported by the TO is communicated by the TO via &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; &amp;lt;small&amp;gt;(see below chapter of the same name, please)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=530</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=530"/>
		<updated>2018-07-05T16:14:37Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentOptions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;FixedFee&#039;&#039;&#039;|| Total amount of the surcharge for the chosen FOP, to be added to the sales price&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PercentFee&#039;&#039;&#039;|| Percentage share of the sales price to be added as surcharge for the chosen FOP to the same   &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=529</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=529"/>
		<updated>2018-07-05T15:55:04Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentOptions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported payment options in case of a Tour Operator collection.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:PaymentDetails(Type).jpg&amp;diff=528</id>
		<title>Datei:PaymentDetails(Type).jpg</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:PaymentDetails(Type).jpg&amp;diff=528"/>
		<updated>2018-07-05T15:51:13Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: Neudeckh lud eine neue Version von Datei:PaymentDetails(Type).jpg hoch&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=527</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=527"/>
		<updated>2018-07-05T15:42:45Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentOptions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; the Tour Operator can inform on the supported PaymentOptions in case of a Tour Operator encashment.&amp;lt;br /&amp;gt;&lt;br /&gt;
Indeed one &#039;&#039;&#039;PaymentOption&#039;&#039;&#039; is used per accepted &#039;&#039;&#039;FormOfPayment&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;For agency debiting there must exist an agreement between TO and the agency which defines the payment processing, but this is out of scope here.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following only the elements are explained which appears here for the first time.&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=526</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=526"/>
		<updated>2018-07-05T15:26:07Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentOptions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|677px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=525</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=525"/>
		<updated>2018-07-05T15:24:47Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentOptions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentOption.JPG|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Datei:PaymentOption.JPG&amp;diff=524</id>
		<title>Datei:PaymentOption.JPG</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Datei:PaymentOption.JPG&amp;diff=524"/>
		<updated>2018-07-05T15:19:26Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=523</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=523"/>
		<updated>2018-07-04T16:19:38Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* Payment Response */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=522</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=522"/>
		<updated>2018-07-04T16:18:44Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* FormOfPayment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look on the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
	<entry>
		<id>http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=521</id>
		<title>Payment Handling</title>
		<link rel="alternate" type="text/html" href="http://string.drv.de/wiki/index.php?title=Payment_Handling&amp;diff=521"/>
		<updated>2018-07-04T16:18:03Z</updated>

		<summary type="html">&lt;p&gt;Neudeckh: /* PaymentDetails */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General information ==&lt;br /&gt;
&lt;br /&gt;
The payment handling, provided by &#039;&#039;&#039;Payments&#039;&#039;&#039; elements, allows &lt;br /&gt;
* The user to enter payments &lt;br /&gt;
* The Tour Operator to inform on expected, desired and effected payments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Additionally there are further &amp;quot;functions&amp;quot; available to the Tour Operator / Organizer &#039;&#039;&#039;&#039;&#039;and thus&#039;&#039;&#039;&#039;&#039; within responses only:&lt;br /&gt;
* &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; to inform about the supported Form Of Payment (FOP) and possibly associated fees (surcharges) respectively&lt;br /&gt;
* &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039; to present a payment summary at one glance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentHandling.jpg|475px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So far this all is offered by two messages, the &#039;&#039;&#039;BookingRequest/Response&#039;&#039;&#039; and the dedicated payment message &#039;&#039;&#039;PaymentRequest/Response&#039;&#039;&#039;. For both - and possibly any other messages in the future - this is done the same identical way.&lt;br /&gt;
Therefore the following views are performed independently from the underlying message.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At first we focus on &#039;&#039;&#039;Payments&#039;&#039;&#039;, followed by &#039;&#039;&#039;PaymentOptions&#039;&#039;&#039; and &#039;&#039;&#039;PaymentOverview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally we will present some xml examples.&lt;br /&gt;
&lt;br /&gt;
== Payments ==&lt;br /&gt;
&lt;br /&gt;
With a &#039;&#039;&#039;request&#039;&#039;&#039; one might enter &#039;&#039;&#039;one or more payments&#039;&#039;&#039; whereas the &#039;&#039;&#039;&#039;&#039;responses&#039;&#039;&#039;&#039;&#039; will inform you on &#039;&#039;&#039;&#039;&#039;all existing payments&#039;&#039;&#039;&#039;&#039; (payment positions) of the &amp;quot;booking&amp;quot; at that point in time, independent from the channel these have been entered.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In both - request and response - the underlying basic structure/complex of a concrete payment is from &#039;&#039;&#039;PaymentType&#039;&#039;&#039;, with different characteristics respectively extensions for request and response; but the basic information is always the same. &lt;br /&gt;
&lt;br /&gt;
So &#039;&#039;&#039;PaymentsRequestType/PaymentsResponseType&#039;&#039;&#039; inherits from &#039;&#039;&#039;PaymentType&#039;&#039;&#039; respectively. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Further &#039;&#039;&#039;Payments&#039;&#039;&#039; always signalizes that we are dealing with one or more payments while &#039;&#039;&#039;Payment&#039;&#039;&#039; elements are used for one concrete payment respectively.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentsRequest-Response.jpg|690px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the following we will describe the used request and response structures more in detail. However, we only will show the information that is helpful for a general understanding in the treated context “payment handling”. The complete information on all available elements, attributes, values etc. can be taken from the [[XSD Documentation]].&lt;br /&gt;
&lt;br /&gt;
Another chapter is dedicated to the different Form Of Payment (FOP) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
We will start with the description of the &#039;&#039;&#039;@Collection&#039;&#039;&#039; attribute, which substantively is identical for request and response, with the only difference that it is mandatory for the response.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| This is used to inform on &lt;br /&gt;
&lt;br /&gt;
* The available encashment types supported/allowed by the Tour Operator for the treated operation / booking / agency and/or customer (response) - therefor it is mandatory here&lt;br /&gt;
* The encashment type chosen/desired by the user (request)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Please notice, when entered here this is valid for all payments of the booking as a whole.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Agency&#039;&#039;&#039;&#039;&#039;|| For agency debiting&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;TourOperator&#039;&#039;&#039;&#039;&#039;|| For Tour Operator debiting; i.e. the customer directely pays to the Tour Operator&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;OnSite&#039;&#039;&#039;&#039;&#039;|| In case the payment must be made on site, e.g. a sports course offered by the hotel&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Normally used for a concrete payment only&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Mixed&#039;&#039;&#039;&#039;&#039;|| Makes sense in the response only. The intention is that the Tour operator explicitly informs that agency and/or tour operator debiting will be allowed. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If a Tour Operator likes to restrict the payments on a specific encashment type he can do it on Payments level; e.g.: To prohibit agency debiting at all he can provide &amp;quot;TourOperator&amp;quot; here, with the consequence that all payments must directly be handled between customer and Tour Operator.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In all other cases the Tour Operator must use &amp;quot;Mixed&amp;quot;. The user then can decide per payment which encashment to be used, i.e. it also allows the mix of encashment types.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Request ===&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentRequest(Type).jpg|451px|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Available top-level attributes ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Attribute!! Values / Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Identifier&#039;&#039;&#039;|| This is a unique identifier within one message, which can be used to reference on a concrete payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;@Collection&#039;&#039;&#039;|| Compare with explanations given above, please &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;But notice, that here the attribute is attached to a concrete payment respectively&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentScope ====&lt;br /&gt;
&lt;br /&gt;
This describes the purpose of the payment(s); it is an enumeration with the following values&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Balance&#039;&#039;&#039;&#039;&#039;|| This is used to mark the total price to be paid to the organizer / Tour Operator, less any down payment.&lt;br /&gt;
&lt;br /&gt;
Initially, this amount is specified together with a due date by the organizer / Tour Operator.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Deposit&#039;&#039;&#039;&#039;&#039;|| This is used to mark the down payment amount expected by the organizer / Tour Operator, which is initially specified by them together with a due date.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Interim&#039;&#039;&#039;&#039;&#039;|| This is used to mark an interim payment with an amount less than the remaining payment amount when the due date for the remaining payment has not yet been reached.&lt;br /&gt;
&lt;br /&gt;
So this is also used for marking installments in the case of installment payments&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== FormOfPayment ====&lt;br /&gt;
In the following the currently supported form of payments are listed which are mostly self-explanatory&lt;br /&gt;
&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;CreditCard&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;DirectDebit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EBanking&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP using the online banking account of an user, like Giropay and Sofortueberweisung  &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;EWallet&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    Account based FOP, like PayPal and Paydirect&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Invoice&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
||    &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Installement&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Voucher&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
|| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;more detailed look at the supported FOPs can be found in chapter #here#&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentAmount ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentAmount - CurrencyAmountType.jpg|363px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Just to record it again, all (payment) amount fields are always formed from a decimal value and the ISO currency&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentServiceProvider ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentServiceProvider(Type).jpg|477px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This more or less is self-explanatory. &lt;br /&gt;
&lt;br /&gt;
Beside the name of the Payment/Financial Service Provider and the URL on a logo of the same also a description/explanation can be indicated herewith.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== CashHolder ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Datei:CashHolder(Type).jpg|588px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Cash Holder is the &amp;quot;owner&amp;quot; of the treated FOP. He/she is the person who is contacted if something went wrong with the corresponding payment, like exceeded credit limit with a credit card or a failed direct deposit.&lt;br /&gt;
&lt;br /&gt;
The Cash Holder can be a person already involved in the booking, either as traveller and/or as booking owner or another independent person. For all cases we have the possiblity to inform on that person, while avoiding redundancies:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToBookingOwner&#039;&#039;&#039;|| As there is only one booking owner existing, it is sufficient to flag this by a boolean&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AssignedToTraveller&#039;&#039;&#039;|| As there are one or more traveller in the booking existing, one must enter an according reference here&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OwnerDetails&#039;&#039;&#039;|| To provide name, address and (media) contact details of that person.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A more detailed description of &#039;&#039;&#039;CommonAddressType&#039;&#039;&#039; can be found #here#&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Payment Response ===&lt;br /&gt;
&lt;br /&gt;
As extension of the request we here have the following additional information&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentResponse(Type).jpg|rahmenlos|ohne]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here we describe only the newly added or changed elements in comparison to the request&lt;br /&gt;
&lt;br /&gt;
We don&#039;t repeat the information here which is identical with the request part documented above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Status ====&lt;br /&gt;
The following payment status we are dealing with.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status!! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039;|| This is the initial status when a payment (wish) by the Tour Operator (TO) has been announced respectively requested.&lt;br /&gt;
&lt;br /&gt;
Normally the TO informs about the requested deposit and balance payments&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039;|| This is the status, when the payment was entered in the travel agency, which only can be the case with agency debiting.&lt;br /&gt;
&lt;br /&gt;
From customer point of view this is a relevant status, as the payment is done or at least triggered then; the regarding amount immediately appears as &amp;quot;paid&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;|| From TO view respectively its bookkeeping this is the most important status as it means that the TO received the money&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Failed&#039;&#039;&#039;&#039;&#039;|| This means that a payment failed.&lt;br /&gt;
&lt;br /&gt;
The Tour Operator or the Agency will have to clarify the according payment with the designated Cash Holder of the regarding payment&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&#039;&#039;Confirmed&#039;&#039;&#039;&#039;&#039;|| ???&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The normal &amp;quot;status flow&amp;quot; will be &lt;br /&gt;
* In case of Agency debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Recorded&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
* In case of Tour Operator debiting:   &#039;&#039;&#039;&#039;&#039;Open&#039;&#039;&#039;&#039;&#039; =&amp;gt; &#039;&#039;&#039;&#039;&#039;Settled&#039;&#039;&#039;&#039;&#039;     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With retrieving a booking one can follow / monitor the payment status.&lt;br /&gt;
&lt;br /&gt;
==== Dates ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDates(Type).jpg|313px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
The Dates elemets are more or less self-explanatory.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DueDate&#039;&#039;&#039;|| The date on which the requested payment (e.g. deposit or balance) is expected by the Tour Operator&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;EntryDate&#039;&#039;&#039;|| The date on which the payment has been entered by the Travel Agency. &lt;br /&gt;
&lt;br /&gt;
At that time the status of the payment status changes from &amp;quot;open&amp;quot; to &amp;quot;recorded&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SettlementDate&#039;&#039;&#039;|| The actual date of receipt of payment by the tour operator.&lt;br /&gt;
&lt;br /&gt;
In case of Tour Operator debiting this is the time when payment status changes from &amp;quot;open&amp;quot; to &amp;quot;settled&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== PaymentDetails ====&lt;br /&gt;
&lt;br /&gt;
[[Datei:PaymentDetails(Type).jpg|369px|rahmenlos]]&lt;br /&gt;
&lt;br /&gt;
This complex is self explanatory. It should only be explicitly pointed out here that the fee amount is only the fee charged in connection with the chosen payment method.&lt;br /&gt;
&lt;br /&gt;
== PaymentOptions ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== PaymentOverview ==&lt;br /&gt;
&lt;br /&gt;
== Visualization / Examples ==&lt;br /&gt;
So we might follow the following workflow: &lt;br /&gt;
&lt;br /&gt;
1. Pricing request / quote&lt;br /&gt;
This will display the expected payments with a status &amp;quot;open&amp;quot; which at least is the total payable amount of the booking. In that case the &lt;br /&gt;
&lt;br /&gt;
2. Book&lt;br /&gt;
Within the request you can enter one or more payments&lt;br /&gt;
With the according response one will receive back the correspondign status from Tour Operator perspective&lt;br /&gt;
&lt;br /&gt;
3. Retrieve / display the booking&lt;br /&gt;
Herewith you will receive back respectively the latest status of the (entered) payments at that time&lt;/div&gt;</summary>
		<author><name>Neudeckh</name></author>
	</entry>
</feed>