kottapalli-in / kstore

Kottapalli Book Store
1 stars 0 forks source link

Create offline payment module #10

Open anandology opened 12 years ago

anandology commented 12 years ago

Create an offline payment module. This will be similar to purchase order module except that it will show the bank account info to the customer after confirming the checkout.

The offline payments module will have the following steps in the checkout.

  1. Ask for billing address (same as step#1 of purchase-order)
  2. Choose shipping method (similar to step#2 of purchase-order
  3. Confirm: Same as step#3 of purchase-order, but showing bank account details in the payment section
  4. Success: Again good to show bank account info here.

The email sent out on purchase will be similar to step#3 and will contain bank account details.

The configuration should ask for textarea for bank account details.

If it works well, we can submit this as a plugin to Satchamo project.

anandology commented 12 years ago

You can start with purchase order module as the base.

Documentation for creating custom payment modules is available at http://www.satchmoproject.com/docs/dev/custom-payment.html.

ashok-raavi commented 12 years ago

Since we decided to just change the templates instead of writing a new payment module, copied satchmo templates to kstore

kstore/templates/shop/checkout/purchaseorder/confirm.html - Step 3, confirm html kstore/templates/shop/checkout/success.html - Step 4, Success html

kstore/templates/shop/email/_order_detail_table.html & kstore/templates/shop/email/_order_detail.txt are the templates of email sent after Step 3

how to go about configuration of bank account details, write in a template file or settings ??

anandology commented 12 years ago

2011/12/17 ashok raavi reply@reply.github.com:

Since we decided to just change the templates instead of writing a new payment module, copied satchmo templates to kstore

kstore/templates/shop/checkout/purchaseorder/confirm.html - Step 3, confirm html kstore/templates/shop/checkout/success.html - Step 4, Success html

kstore/templates/shop/email/_order_detail_table.html & kstore/templates/shop/email/_order_detail.txt are the templates of email sent after Step 3

how to go about configuration of bank account details, write in  a template file or settings ??

Can you read it from settings.py? Adding it to setting UI is too much now.

ashok-raavi commented 12 years ago

reading account details from settings, https://github.com/kottapalli-in/kstore/commit/f8655b7757da77a4a722888a164c19a17fee1630