veda-consulting / uk.co.vedaconsulting.payment.ukdirectdebit

Core UK Online Direct Debit Extension
2 stars 8 forks source link

Create new contribution for recuring smart debit payment #8

Closed Kajakaran closed 10 years ago

Kajakaran commented 10 years ago

1) Added new functionality to create new contribution on recurring payment for smart debit depending on the status of the direct debit in API 2) Updates the first contribution's details of the recurring payment based on the reply from smart debit API(Cancel, reject, or update the record with the new unique trxn_id) 3) Made this sync to work any time based on the receive_date of the latest contribution for a particular contact 4) Created new trxn_id in this code to avoid duplicates being created. 5) Shows stats(Added contributions, Cancelled and Updated) after the completion of syncing.

deepak-srivastava commented 10 years ago

notes from review:

re-create smart debit extension Sync code should be in smart debit separate out other codes specific to smart debit into smart debit.

inner join $contribution_status_id -> call it recur

doc on smart debit status

reuse IPN code