Payment modules are supposed to be on $CASSIOPEIA_HOME/module/payment directory.

Interface

def payment_fee(cart)

Return payment fee.

def pay_first?()

Pay in advance or not.

def online_transfer?()

Is it possible to transfer by Internet.

def show_configuration_page()

Payment module's configuration page.

def show_detailed_payment_info(order)

Show detailed order payment information. It can be called by administration page and customer page.

def select_payment_method(payment_method)

Payment selection rhtml component. It will be called under the ordering process.

Arguments

  • payment_method: Currently selected payment method.

def update_payment_method

Update payment method.

def order_created(order)

It will be called if an order is created.

Prev

Top

Upward

Next