NAME
Interchange6::Schema::Result::PaymentOrder
DESCRIPTION
The payment_sessions_id
is used to store the session id provided by the gateway. For example, with Business::OnlinePayment::IPayment you put the session id into the HTML form for the silent CGI mode.
The sessions_id
is used here so we can track down payments without orders. We usually turn a guest user into a real user after confirmation of a successful payment, so we need the session information here in the case the payment is made but the confirmation didn't reach the online shop.
ACCESSORS
payment_orders_id
Primary key.
payment_mode
Payment mode, e.g.: PayPal.
Defaults to empty string.
payment_action
Payment action, e.g.: charge.
Defaults to empty string.
payment_id
Payment ID.
Defaults to empty string.
auth_code
Payment auth code.
Defaults to empty string.
users_id
FK on "users_id" in Interchange6::Schema::Result::User.
Is nullable.
sessions_id
FK on "sessions_id" in Interchange6::Schema::Result::Session.
Is nullable.
orders_id
FK on "orders_id" in Interchange6::Schema::Result::Order.
Is nullable.
amount
Amount of payment.
Defaults to 0.
status
Status of this payment.
Defaults to empty string.
payment_sessions_id
FK on "sessions_id" in Interchange::Schema::Result::Session.
payment_error_code
Error message returned from payment gateway.
Defaults to empty string.
payment_error_message
Error message returned from payment gateway.
Is nullable.
payment_fee
Some gateways (notably PayPal) charge a fee for each transaction. This column should be used to store the transaction fee (if any).
created
Date and time when this record was created returned as DateTime object. Value is auto-set on insert.
last_modified
Date and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.
RELATIONS
order
Type: belongs_to
Related object: Interchange6::Schema::Result::Order
user
Type: belongs_to
Related object: Interchange6::Schema::Result::User
session
Type: belongs_to
Related object: Interchange6::Schema::Result::Session