The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Business::OnlinePayment::IPayment::Transaction - Simple object to hold the transaction request

SYNOPSIS

$IPayment_object->transaction(transactionType => 'auth',
                              trxAmount       => 5000, # 50 €
                              trxCurrency     => 'EUR',
                              invoiceText     => "Thanks!",
                              trxUserComment  => "Hello!",
                              paymentType     => "cc",
                              shopper_id      => int(rand(5000)),
                              options => {
                                fromIp => '99.99.99.99',
                                checkDoubleTrx => 1,
                                errorLang      => 'en',
                                # and possibly others, see doc wsdl
                               });
                    

TransactionData

This class holds the data of a single transaction. Given that the values are all related and shouldn't change over its lifetime, it's everything read-only.

trxCurrency

Currency in which the payment is processed. There are all known three-letter ISO Currency codes allowed. A list of known currency codes, see https://ipayment.de/ under Technik. E.g EUR

CGI Name: trx_currency

Note that the processing of payments in the currency must be agreed with your payment provider.

Default to EUR in this implementation.

trxAmount

Amount to be debited, in the smallest currency unit, for Example cents. Decimal points or other characters except numbers are not allowed.

CGI Name: trx_amount

shopper_id

This parameter allows you to specify a unique ID for an order process. Under this Shopper ID is saved to the associated transaction in order ipayment system. The Shopper ID must be unique only if the extended examination of the IDs Avoidance of double use transactions.

invoiceText
trxUserComment
recurringData
installmentData
transactionData

Return the hashref with the transaction data details

transactionType

The transaction type, choosen from the types below. It defaults to auth

preauth
auth
base_check
check_save
grefund_cap

CGI Name: trx_typ

paymentType

The payment type, choosen from the types below. It defaults to cc

cc
elv
pp

CGI Name: trx_paymenttyp

options

Additional options for the SOAP request, as a hashref. These options are quite advanced, so we don't do any additional checking ourselves, delegating them to the SOAP compiler.

Additional transaction information

addr_info

Hashref to hold additional information, notably the information about the cardholder.