Hello,

I tried to setup this module.. installed, configured etc (as far as i know correctly..)
Though as far as i know there isn't that much to do.
I created a subscription product with 5 weeks interval.
i checked the paypal recurring box at the bottom.
added the product to a node.

It shows the recurring is checked, interval 5 weeks etc.
But when i try to check out with sandbox i just get a normal checkout page (one time payment).
So obviousely i must of missed something.. unfortunatly there's no documentation on it neither... so any help will be apriciated.

Regards,
Marco

Comments

mh86’s picture

no further configuration should be necessary.
can you show me how the paypal checkout page looks like?

key4ce’s picture

Thanks for the answer..
I think my drupal installation is quite messed up at this point. so i will make a fresh installation and see if it works then.

That being said:
Is there a way to make periods of 1 month instead of weeks? (i only saw weeks option.. but we really only sell monthly subscriptions).

Regards,
Marco

mh86’s picture

Different periods are of course possible. Maybe you have to activate them in the field settings of the subscription product.

jordiserra’s picture

I don't see how it's possible to set up a different period of time instead weeks. There are these two functions in the module that that calculates the amount of seconds specifically for a given number of weeks:

/**
 * Gets the duration in seconds.
 */
function commerce_sp_time_get($entity, array $options, $name, $entity_type, $info) {
  $weeks = entity_metadata_field_property_get($entity, $options, $name, $entity_type, $info);
  return $weeks * 7 * 24 * 3600;
}

/**
 * Sets the duration in seconds.
 */
function commerce_sp_time_set($entity, $name, $value, $langcode, $entity_type) {
  $value = $value / (7 * 24 * 3600);
  $weeks = entity_metadata_field_property_set($entity, $name, $value, $langcode, $entity_type);
}

It would be great if we can pass the base unit of time as a parameter (day, week, month), and make it configurable in the fields settings.

I will try to do it and if I success, I will post it here. If anyone want to help, tell me!

deltaag’s picture

I am testing this on Drupal 7.22 (not commerce_kickstart) and I am not sure if I am missing anything. I am getting one payment in paypal too. It is not a recuring (subscription) payment in paypal sand box.

I followed installing commerce_sp using #71 of http://drupal.org/node/1522018 and installed version 7.x-2.x-dev of commerce_sp.
Then when I installed commerce_sp_paypal, there was no payment, so I activated paypal_wps to handle the payment.
Subscription time works in Drupal, but as I said, paypal is doing one payment not recuring.

What am I missing? Please help!

radiocontrolled’s picture

I have the same issue as @deltaag

How can I set this up so the purchase is a recurring payment?

Thanks

kyuubi’s picture

Hi,

I am getting the same issue.

There is no docs on how to setup this module, and it appears to be doing anything at all.

Can anyone help with this?

If you guys can explain how this is setup I can contribute with a nice documentation.

Cheers,

Duarte

gvollo’s picture

It looks like this module really only works if you're using Paypal WPS.

selfirian’s picture

Hello,

I have the same issue, I only have one payment (the first one) coming in on my PayPal sandbox account.
Even though it says that it's a subscription... is this something related to the PayPal sandbox or did I forget to configure something?

Please Drupal Community help me

selfirian’s picture

Hi Guys,

Just to share, I think the issue I had was due to the fact that my PayPal sandbox was mis configured, it didn't handle subscriptions that well.

It is now working as designed.

ricmel111’s picture

How did you set it up in Sandbox? Has anybody figured out how to get this working properly? I too am only getting one-time payment.

selfirian’s picture

Issue summary: View changes

Hi, I had to create a new sandbox account in order for it to work... now it seems I get a cloned order on each cron run :(