I'm trying to setup a subscription which has a free trial period for 30 days, but it doesn't seem to be working. When I complete a transaction the subscription fee is deducted from my account immediately. Nothing should be charged until the trial period is over.

It seems to work fine if I specify actual values in the 'Trial Amount 1' and 'Trial Period 1' fields. But the instructions say to leave both fields blank for a free trial period.

Am I doing something wrong?

Thanks for the help.

Comments

LeeMcL’s picture

Assigned: Unassigned » LeeMcL
Status: Active » Needs review
StatusFileSize
new4.37 KB

No you are doing it right. Sadly I wasn't! Looks like I got over enthusiastic while validating various fields to the extent that free trials stopped working.

I've corrected this in CVS and attached the same patch here.

While doing this I found and fixed a couple of other small problems (see the CVS log for details).

bspark’s picture

Works great! Thanks for the speedy response.

LeeMcL’s picture

Status: Needs review » Closed (fixed)

Issue solved

bspark’s picture

Status: Closed (fixed) » Active

Unfortunately the free trials are not working completely. When I tested this before I had a monthly charge of $.02. That worked fine. Until today I left it set to that amount for testing. I changed the monthly charge to $100 today to test before going live and saw the following in my PayPal account:

Total Amount: $100.00 USD
Fee Amount: -$3.20 USD
Net Amount: $96.80 USD

Before with it set to $.02 I saw this:

Total Amount: $.02 USD
Fee Amount: -$.02 USD
Net Amount: $0.00 USD

I also tested this with it set to $1.00 and got this:

Total Amount: $1.00 USD
Fee Amount: -$0.33 USD
Net Amount: $0.67 USD

In all cases I have it set for a free trial for 1 month.

Any help here?

Thanks in advance!

LeeMcL’s picture

Priority: Critical » Normal

Hi. I'm sorry but I dont understand your problem report. You set the subscription amount to various values which appear to be correctly handled by PayPal ... I dont see an error. Perhaps I'm just a little tired as I'm hard at work on another project at the moment.

Lee

bspark’s picture

You're correct...the monthly charges seem to be handled fine by PayPal. What doesn't seem to be working is the free trial period. I was under the assumption that you achieved the free trial by simply setting the "Fee Amount" to the negative of whatever the "Total Amount" is, so they cancel out. I say this because this is how it worked when I first tested it with a value of $.02.

For the $100 monthly subscription with a 1 month free trial I have the following settings in my LM PayPal Subscription:

Regular Rate: $100.00
Regular Billing Cycle: 1
Regular Billing Cycle Units: Months
Recurring Payments: Yes
Recurring Times: [Empty]

Trial amount 1: [Empty]
Trial period 1: 1
Trial period 1 units: Months

Hopefully this is more clear. Please let me know if you need any more info.

Thanks again!

LeeMcL’s picture

I don't think free trials work that way. When I was testing them I just had a trial period with a zero amount. I'm really not sure what will happen with negative amounts!

Lee

bspark’s picture

I'm not using negative amounts. That negative amount I was referring to was what I saw in the transaction details in PayPal. All I'm trying to do is have a free trial for 1 month, and recurring monthly charge of $100 after the first month. Are these not the correct settings to achieve this?

Regular Rate: $100.00
Regular Billing Cycle: 1
Regular Billing Cycle Units: Months
Recurring Payments: Yes
Recurring Times: [Empty]

Trial amount 1: [Empty]
Trial period 1: 1
Trial period 1 units: Months

LeeMcL’s picture

Yes those are the correct settings for a free one month trial followed by a $100/month regular fee. Paypal will, of course, takes its fees from this. I can't remember the exact amount but on $100 a fee of $3.20 sounds right. I still dont see where the fault is in this!

Lee

bspark’s picture

It appears that the user is being charged the first month when it should be free. There is nothing indicating a free trial.

bspark’s picture

I checked my credit card account and it was definitely charged even though I had it setup for the one month free trial. Any help?

Thanks.

LeeMcL’s picture

Sorry I've not had a chance to look at this but I have a rush job on. I will be able to look into it on Monday.

Lee

bspark’s picture

Priority: Normal » Critical

Hi Lee,

Have you had a chance to give this a look?

LeeMcL’s picture

Status: Active » Fixed
StatusFileSize
new2.24 KB

Firstly my apologies for the delay in fixing this but I was swamped completing another project on time. So two linux device drivers, an LCD interface, a simple graphics library, and an SMS/modem interface later...

I've fixed the code to properly handle free trials and I've applied the patch to the copy in HEAD. I've attached a copy of the same patch here.

Lee

adelablue’s picture

Hi, I was dealing with the trial period stuff, too.
I wonder after the user subscribes as a member should the status displayed as "already subscribe" or others?
Since after subscribe but in free trial period, I didn't see the "already subscribe"....

LeeMcL’s picture

I just ran a test by creating a role subscription with a one week free trial. I subscribed and checked straight away and I was "already subscribed".

Sometimes it can take a little while for the IPN message to come from PayPal, could you check it wasn't delayed. If that isn't it then have a look at the logs for both Drupal and LM_PayPal and see if there are any problems reported.

Lee

Anonymous’s picture

Status: Fixed » Closed (fixed)