Hi,
im trying to implement module ec_autoplay to module ec_recurring which will work with module Worldpay and FuturePay. I need recurring
products which are automatically refreshed to be sold as membership products. Here are my ideas:
-
function ec_autopay will create a new transaction - store_transaction_save() (where this refreshable recurring product will be sold) and than automatically confirm the transaction as paid - it will be like user manually buy subscription.
-
function ec_autopay should renew the status of a recent product and its expriation time
These ideas came to me after studying the source codes of ec_recurring. If the implementation works differently, I will need help with what direction to take. How the function ec_autopay should actually work and what the function actually does.
Thanks
Comments
Hi Mathiaz, Jut FYI, we have
Hi Mathiaz,
Jut FYI, we have developed an ec_autopay module and the module it's simple by itself, but the development also required to modify the payment gateways modules as well.
Mariano Barcia
Colaborativa.net
www.colaborativa.net
Hi Mariano
I've made a lot of modification to Worldpay module (i can say that is completely rewritten) i just need to know what should exact function ec_autopay_renew_product() ? If you can say me (don't have to be exact code implementation) just by words what this function do? For example: it will buy new product one more time.
We implemented
We implemented hook_renew_product(), like this:
/**
* Implementation of hook_renew_product
*/
function ec_autopay_renew_product(&$node, $expiry_time) {
$t = store_transaction_load($node->expired_schedule['txnid']);
authorize_net_process_txn($data, &$t);
}
The difficult part is that the $data needs to be managed properly.
Mariano Barcia
Colaborativa.net
www.colaborativa.net
authorize_net
Looks pretty easy so i think that the main processing is in the function authorize_net_process_txn(). I don't see where $data is made. And what is this function doing?
I was thinking about something like this
<?phpfunction ec_autopay_renew_product(&node, $expiry_time) {
$isPaidProduct = false;
// this will check the if the product is paid
$isPaidProduct = worldpay_futurepay_check_payment($node);
if(isPaidProduct) {
// i am interested in this part of function
// how to do the product renewal
// i was thinking about making a transaction with this product
// and save it as paid by user
// this will simulate something like user click on buy and pay the product
}
}
?>
I am right about my concept?
Thanks a lot for your help.
gateway solution?
''The difficult part is that the $data needs to be managed properly.''
Meaning stored in some fashion until the next transaction, correct?
I am hoping someone has reoccurring payment integrated with a payment gateway like Authorize.net that has recurring/subscription billing options.
following up on your development effort
Hi mathiaz.sk,
My associate and myself are involved in a project aiming at delivering services through a web application.
These services will be subject to payment installments, such as your recurring product payments.
A payment schedule shall exist, for which payments are determined by specific service milestones. These milestones are themselves based on a merchant/shopper service agreement that has to be agreed upon by the shopper before the sequence of recurring payments can be engaged.
For such a system, we have finally concluded that the best technical choice seems to be worldpay.
It appears that you are, or have been, facing the same issues as we currently do.
If you have a working or soon to be working solution, would you be interested in sharing your code / ideas with us. We are just starting with worldpay / futurepay. In return, we could disclose all our future service based solution, to you.
Let me know ...
contact me
Hi theologicus,
contact me on my form.
status
Hello all- I am in the development phase of my own ec_autopay. What is your status of development of this module?