Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

custom recurring payment


micheel_m

Recommended Posts

Posted

hello,

 

we're considering using osCommerce instead of the custom shopping cart we currently have.

 

we have a very unique reuqirement for recurring payments:

 

first payment (immediate) - $1

after X days - $50

after Y days and monthly from now on - $25

 

is this possible?

 

Michael

Posted

It seems that it should be possible with a custom modification of the paypal_standard.php and standard_ipn.php files, although I haven't tried it. If you are using a payment processor other than PayPal, it would depend on the API provided.

Always back up before making changes.

Posted

It just so happens we're working on repurposing paypal_standard.php to become paypal_subscriptions.php.

The PayPal button processing defines a cmd (_xclick_subscriptions) and html variables for their "subscribe button" that has three sets of variables.

  • 1st Trial period with price and duration
  • 2nd Trial period with price and duration
  • Regular with price and duration

We just need the Regular so that's our focus.

We have succeeded in getting all the functionality of the original module but have hit a snag with the "process_button()" function.

The problem is our understanding of osCommerce structure and PHP.

If there is someone out there who can help us understand better how the process_button() works we're close.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...