[net.nemein.payment] element index

Package indexes

All elements
f g h i m n p r _
_
top
Variable $_account
The PayPal account to use (this is an E-Mail address).
Variable $_additional_options
Additional options to pass to PayPal, see class introduction for details.
Variable $_amount
The amount that is being invoiced.
Variable $_amount_string
String representation of the amount used in interaction with the Nordea servers.
Variable $_authentication_seed
The seed used to secure the MD5 sum of the payment reference and amount.
Variable $_backend
The PayPal Backend to use, this is either 'live', 'sandbox' or a full URL.
Variable $_cancel_url
Return address if payment was cancelled.
Variable $_currency
The currency to use.
Variable $_currency
Currency code, Nordea currently only supports EUR.
Variable $_date
Payment due date.
Variable $_handler_config
The handler configuration array.
Variable $_key_version
Key version (I suspect that this relates to the MAC).
Variable $_language
Payment interface language (1 = Finnish, 2 = Swedish, 3 = English).
Variable $_local_cert
The path to the X.509 certificate used to sign the requests to PayPal.
Variable $_local_cert_id
The Certificate ID assigend by PayPal when uploading the certificate.
Variable $_local_key
The path to the X.509 private key used to sign the requests to PayPal.
Variable $_local_key_password
Contains the password required to access the local key, if set.
Variable $_mac
The Message authentication code, computed as outlined in Chapter 3.3 of the Nordea specs. This is an MD5 sum.
Variable $_message
An arbitary message to the user, shown during payment processing (if supported by the payment handler).
Variable $_ok_url
Return address following successful payment.
Variable $_payment_confirmation
Payment confirmation (YES adds additional, required information to the response).
Variable $_payment_reference
Payment reference number, constructed out of the reference id by adding the check digit.
Variable $_payment_reference_suffix
Payment reference number suffix, used to distinguish different installations from each other.
Variable $_paypal_cert
The path to the X.509 certificate to use to encrypt the requests to PayPal. This must be a valid certificate parameter for the openssl PHP module.
Variable $_pdt_id_token
The PayPal identity token required for PDT access.
Variable $_rcv_account
Receiver Account, if different from the default.
Variable $_rcv_name
Service Provider Name, if different from the default.
Variable $_reference
The payment reference accociated with this record. The exact allowed characters for this field varies with the actual handler, refer to their class documentations for details.
Variable $_rejected_url
Return address if payment was rejected.
Variable $_request_args
This variable holds the arguments that should go into the request. It is build during the payment rendering and is rendered encrypted if possible.
Variable $_request_url
The request URL derived from the "backend" variable. This is always a full URL.
Variable $_response_payment_code
The payment code as returned by the bank's system.
Variable $_return_url
The URL to return to after processing the payment. This must be a fully qualified URL which calls the process_payment handler function.
Variable $_stamp
The stamp identifying the request. This is an unique number which is used to prevent double processing on the server side. It is built using the current timestamp and the order ID.
Variable $_version
Payment interface version.
Method _calculate_mac
Calculates the message authentication code for the current request data.
Method _calculate_reference
Calculates the payment reference number by adding the check digit as described in Chapter 3.2, Field number 8 in the Payment specification.
Method _calculate_stamp
Calculates the stamp for this payment, which has to be unique.
Method _check_mac
Calculates the message authentication code from the return information and triggers an error, if it does not match the one supplied in the response (as stored in $_mac).
Method _detect_language
Sync the Remote UI language with the language set by MidCOM.
Method _execute_pdt_request
Executes an PDT request to the server determined by the _get_pdt_server helper.
Method _generate_return_urls
This helper generates the three (ok, cancel, reject) return urls for the current payment request. They are generated using the supplied return URL and pass a parameter by HTTP GET so that the result can be processed accordingly.
Method _get_message_digest
This function computes the MD5 hash which secures the payment reference and the amount.
Method _get_pdt_server
Determines the server name to send PDT requests to.
Method _mask_text_strings
This helper masks text strings (currently only the user message is affected) so that it does not interfere with the surrounding HTML.
Method _on_process_payment
Process the payment and populate the payment status variables.
Method _on_process_payment
Process the payment and populate the payment status variables.
Method _on_process_payment
Process the payment and populate the payment status variables.
Method _on_process_payment
Processes the payment. Incomplete request arrays always result in a critical error, aborting execution.
Method _on_render_payment_link
Renders the payment link, this is a simple href to the return URL.
Method _on_render_payment_link
Renders the payment link.
Method _on_render_payment_link
Render the payment link for the current configuration.
Method _on_render_payment_link
Renders the payment link, preparation in thie order:
Method _prepare_request_args
Prepares the request_args array to add the actual data. The array is initialized with the additional options field (thus any restricted option will be overwritten later) and is completed with the actual payment information.
Method _prepare_request_url
Determines the actual URL to send the request to.
Method _print
This helper prints the actual form to stdout.
Method _process_cancel
The payment has been cancelled by the user.
Method _process_ok
The payment has been successful.
Method _process_ok
Verifies the response by using PayPals Payment Data Transfer (PDT) service.
Method _process_reject
The payment has been rejected by the bank.
Method _read_response
Reads all applicable information from the HTTP Request into the class. The message digest is not yet checked the PDT data is required to do that.
Method _read_response
Reads and verifies the response received from the Nordea server.
Method _render_encrypted
Renders an encrypted request for paypal. Called if the corresponding certificates are set.
Method _render_plain
Renders a plain unencrypted form for payment.
Method _validate_against_pdt
This function validates the current response data using the PDT service of PayPal.
f
top
Page factory.php
factory.php in factory.php
g
top
Method get_instance
Singelton interface, returns the factory instance.
h
top
Variable $handlers
The list of configured and constructed handlers. They are indexed automatically.
Page handler.php
handler.php in handler.php
i
top
Method initialize
Parses the configuration and initializes all concrete handler classes.
Page invoice.php
invoice.php in invoice.php
Page interfaces.php
interfaces.php in interfaces.php
m
top
Variable $machine_response
Machine readable data about the processed payment. This is usually a serialized string.
Variable $message
Human readable message about the processed payment. It is recommended that you store this information at the related order.
n
top
Page nordea.php
nordea.php in nordea.php
Constant NET_NEMEIN_PAYMENT_CANCELLED
Payment return code set when the user cancelled the payment.
Constant NET_NEMEIN_PAYMENT_ERROR
NET_NEMEIN_PAYMENT_ERROR in interfaces.php
Payment return code set when an internal, unrecoverable error was detected.
Class net_nemein_payment_factory
Payment handler factory class.
Method net_nemein_payment_factory
Constructor, initialize base class.
Method net_nemein_payment_handler
Initializes the class, populates the config member variable.
Class net_nemein_payment_handler
Payment handler base class.
Method net_nemein_payment_handler_invoice
Constructor, relays to base class.
Class net_nemein_payment_handler_invoice
Simple payment handler used for having an "Pay by Invoice" alternative available.
Method net_nemein_payment_handler_nordea
Constructor, relays to base class.
Class net_nemein_payment_handler_nordea
Nordea E-payment service payment handler
Method net_nemein_payment_handler_paypal
Constructor, relays to base class.
Class net_nemein_payment_handler_paypal
PayPal Frontend for FORM based payments (does not use Web Services).
Method net_nemein_payment_interface
Class net_nemein_payment_interface
Payment library MidCOM interface class.
Constant NET_NEMEIN_PAYMENT_OK
NET_NEMEIN_PAYMENT_OK in interfaces.php
Payment return code for a successful Payment.
Constant NET_NEMEIN_PAYMENT_OK_BUT_PENDING
Payment return code for an accepted Payment which has not been executed yet.
Constant NET_NEMEIN_PAYMENT_REJECTED
NET_NEMEIN_PAYMENT_REJECTED in interfaces.php
Payment return code for a Payment which has been rejected by the E-Banking service provider.
p
top
Page paypal.php
paypal.php in paypal.php
Method process_payment
Processes the payment that has been rendered previously.
Method process_payment
Processes the payment that has been invoked by a previous instance of this call.
r
top
Variable $result
Status code, one of NET_NEMEIN_PAYMENT_OK, NET_NEMEIN_PAYMENT_REJECTED, NET_NEMEIN_PAYMENT_CANCELLED or NET_NEMEIN_PAYMENT_ERROR.
Method render_payment_link
Renders a link (this might be a FORM actually, so take this into account in your layout code) to pay the specified amount. The Return URL must lead to a piece of code which calls process_payment.
Method render_payment_links
Renders a list of payment links for all configured handlers. The Return URL must lead to a piece of code which calls process_payment.
f g h i m n p r _