PAYMORROWPI- outputs this payment information on the order confirmation, and this is the part that every template needs. PAYMORROW- shows the complete raw responses and is intended for test mode only.
Guide: Paymorrow
Two payment methods, two requests
In the shop system, Paymorrow serves two payment methods: purchase on invoice and direct debit. Both run via the same integration, but have their own configuration and their own approval. A rejection for purchase on invoice therefore does not also block direct debit. Each payment method goes through two requests to Paymorrow.
Two payment methods times two requests times two formats result in the eight
PAYMORROW- tags further below.
If Paymorrow rejects definitively, the shop system remembers this for the session and hides the payment method in the selection or shows it grayed out. In the template, you can see this via
PAY-Data_disabled. You do not need a separate PAYMORROW- tag for this.Outputting the payment information
After a successful authorization, Paymorrow provides the data to which the buyer should transfer the money. The tags of thePAYMORROWPI- family retrieve this data individually. The part after the hyphen is the field name as Paymorrow writes it in the response.
Wrap the entire block with a field that is always filled, for example
PAYMORROWPI-recipientName. For any other payment method, the data is not available, the range tag does not apply, and the heading disappears together with the block.The two lines of the payment reference are not both guaranteed to be filled. Wrap the second line in a range tag, otherwise there will be an empty line break there.
Further fields from the response
The shop system stores all fields of the payment information as a list and, when resolving a tag, simply searches for the name after the hyphen. If Paymorrow returns a field that is not listed above, you can access it with the same pattern.A field name that the response does not contain is not an error. The single tag then outputs nothing and the range tag does not apply. So you can access a field that is only supplied under certain circumstances without breaking the template.
The values are output HTML-encoded. You can place them on the page and in the email without further processing.
The raw responses in test mode
For troubleshooting, the shop system outputs the complete responses from Paymorrow. They are available per payment method, per request, and in two formats.Paymorrow responds exclusively in XML. The JSON variant is a conversion by the shop system, not a second format from the service provider. For troubleshooting with Paymorrow, the XML version is therefore the authoritative one.
The output is HTML-encoded. The angle brackets of the XML therefore appear as text and do not break the page. A
pre element around the tag makes the response readable.Each response is only available if the corresponding request took place in the same page request. So place the tags on the page on which the process is triggered, not on any later page.
The tags at a glance
The
PAYMORROWPI- tags apply on the order confirmation ws_confirm.htm, in its PDF version pdf_confirm.htm, and in the order confirmation email mail_customer_order.htm, in each case only after the order has been completed. The PAYMORROW- tags are permitted on all templates.
Related topics
- Guide: Paymorrow
- Guide: Designing the order confirmation
- Reference: PAY- (Displaying and selecting payment methods)
