By Grzegorz Szyszka on Tuesday, 16 June 2020
Posted in General Issues
Replies 31
Likes 0
Views 725
Votes 0
token [[TRANSACTION_AMOUNT]] have wrong value in case
- recurring subscription and discount used

-First invoice is correct (I mean token value)
- next recurring invoice have bad value in [[TRANSACTION_AMOUNT]] - have value with discount and token for total value is without discount as well as transaction value is without discount -
So rest related fields are OK - including transaction but token value is wrong
By the way its looks that i case of recurring subscriptions discount should work only on first invoice - please confirm

Additionally system created 2 invoices instead of 3 (in this example which I attached - its subscription for 3 recurrences)

The same subscription as in example without discount works perfect
Hey,

I've tried to access your site but it seems you changed the details.
Can you please provide me the details of your site. so i'll check this issue.
·
Tuesday, 16 June 2020 20:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Manisha

I blocked external access to backend and ftp
Unfortunatelly I can not give you access to site as its now live site
Additionally there are live secret key to Stripe so you understand that I should limit access to this as much as I can ;(
Also any test purchases are not possible as it process real payments now

I expect that tomorrow evening (night your time) to give you access to our test environment and site copy with sandbox mode

If you can try to reproduce error on you testing site its OK, if not we will have to wait a little
·
Wednesday, 17 June 2020 04:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Ok, i'll try to replicate the same at localend.
But i need to check your site configuration as well as. Once your test site ready, do us update.

Thank you for understanding !
·
Wednesday, 17 June 2020 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
I updated site details (testing one) - you can work on it

Please remember to report me all changes to be able to replicate it into our live site
·
Thursday, 18 June 2020 06:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Thank you for updating us on this.
I am able to replicate this issue , for now i would like to suggest you to use [[INVOICE_TOTAL]] token instaed of [[TRANSACTION_AMOUNT]] , the invoice total will be same as transaction amount.
I've logged this into our issue tracker as well as , we will look into this.

By the way its looks that i case of recurring subscriptions discount should work only on first invoice - please confirm
Regarding this, I've checked and found that you have created discount coupon of initial type which mean it will applicable on first payment only.
If you want to apply discount on each recurrence payment then you need to create coupon type of "Recurring Subscription" type. see attached screenshot.

Let me know if you have any query.
·
Thursday, 18 June 2020 13:57
·
0 Likes
·
0 Votes
·
0 Comments
·

By the way its looks that i case of recurring subscriptions discount should work only on first invoice - please confirm

I tested 3 cases
Initial purchase - in this case works OK
Any reason
Recurring
On last two cases for recurring subscriptions discount works only on first invoice


I am able to replicate this issue , for now i would like to suggest you to use [[INVOICE_TOTAL]] token instaed of [[TRANSACTION_AMOUNT]]


Its OK as temporary solution - but paid value is better, I am using its on invoice in section informing about payment done, so for me its additional checkout if payment value are equal to invoice value

I will not use this way around as I have to block coupons because of other bugs which stop its usage for costumers
I mean problem which described above (not working correctly on Any reason and recurring)

and


Additionally system created 2 invoices instead of 3 (in this example which I attached - its subscription for 3 recurrences)
·
Thursday, 18 June 2020 15:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

I tested 3 cases
Initial purchase - in this case works OK
Any reason
Recurring
On last two cases for recurring subscriptions discount works only on first invoice

I didn't get what you mean exactly. You are talking about token or discount.
Please explain in details, so i can assist you.

Additionally system created 2 invoices instead of 3 (in this example which I attached - its subscription for 3 recurrences)
The subscription you are talking about is not exist in the system. Do you mean after 2 payment , it got expire or ?
This issue already fixed in earlier release of payplans.

I've tried to connect with ftp of your site , but it's not showing the correct folder.
See attached screenshot.

Please tell me the correct path, so i'll check the issue.
·
Thursday, 18 June 2020 17:57
·
0 Likes
·
0 Votes
·
0 Comments
·
all errors are related to discounts
For tests I used discount - Rabat na poczÄ…tek(different types - percentage value)
I used plan 1x5x2 test 10 min 3 razy which is recurring, 3 times every 10 minutes

I am not sure when its expired but it created two invoices instead of 3
And token value was incorrect as described before

If its still not clear please let me know
·
Thursday, 18 June 2020 18:16
·
0 Likes
·
0 Votes
·
0 Comments
·

I used plan 1x5x2 test 10 min 3 razy which is recurring, 3 times every 10 minutes

You have this plan in group

testowe
·
Thursday, 18 June 2020 18:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, i'll check it.

I've tried to connect with ftp of your site , but it's not showing the correct folder.
Please provide me the correct access, so i can check the issue.
·
Thursday, 18 June 2020 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, i'll check it.

I've tried to connect with ftp of your site , but it's not showing the correct folder.
Please provide me the correct access, so i can check the issue.


Sorry, its correct now
·
Thursday, 18 June 2020 20:31
·
0 Likes
·
0 Votes
·
0 Comments
·
till 10 P.m. your time this server will be switched off as we are moving it to another server room
·
Thursday, 18 June 2020 20:34
·
0 Likes
·
0 Votes
·
0 Comments
·
test server is again available now
You can test
·
Thursday, 18 June 2020 21:25
·
0 Likes
·
0 Votes
·
0 Comments
·
If you get wrong folder on ftp please go yo rooth/usr/share/comeleon_www
·
Friday, 19 June 2020 09:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Thank you for providing us with the access.
I've tested the plan and as you setup the recurrence count to 3 , 3 invoice are created correctly.
https://jooml4mtw312v8iop2xc.comeleon.pl/administrator/index.php?option=com_payplans&view=subscription&layout=form&id=310

Regarding token [[Transaction_AMOUNT]] , i've already said it's already added into our issue tracker and we are working on this.
Once fixed internally we will update you.
That's why i said for now use [[INVOICE_TOTAL]] token , as it's the same as transaction amount. Because transaction always have same price value for which invoice being paid.

Let me know if you still have any confusion.
·
Friday, 19 June 2020 11:48
·
0 Likes
·
0 Votes
·
0 Comments
·
But you tested it without usage of discount !

I described clearly when error occurs

Please test it with discount

Please also change change discount Usage Type to see that there are no difference in discount behaviour and its creates 2 instead of 3 invoices
·
Friday, 19 June 2020 14:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Why subscription you bought is still active ?
Why its have expiration date and hour bigger than 10 min ?
·
Friday, 19 June 2020 14:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

I am checking this issue and will get back to you on this.
·
Friday, 19 June 2020 14:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Why subscription you bought is still active ?
Why its have expiration date and hour bigger than 10 min ?



OK
Cron was not configured so I changed its to automated and now subscription is deactivated

But rest of problems are still active

Look on my test
https://jooml4mtw312v8iop2xc.comeleon.pl/administrator/index.php?option=com_payplans&view=subscription&layout=form&id=311

Probably its will create next invoice but expiration date is incorrectly calculated, for tomorrow ...it should be 10 minutes
First recurrence time was ok
·
Friday, 19 June 2020 14:54
·
0 Likes
·
0 Votes
·
0 Comments
·
and in my test I set discount to "Any condition" but only first recurrence was with discount
·
Friday, 19 June 2020 15:06
·
0 Likes
·
0 Votes
·
0 Comments
·
WHen I set Usage Type to Recurring Subscription its works OK, so please check with different settings

For now we know that with any condition we have error in case with recurring subscriptions
·
Friday, 19 June 2020 16:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Discount type Initial purchase gives error as attached
·
Friday, 19 June 2020 16:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Regarding [[transaction_amount]] token, i've already applied the fix at your site. Please check this issue again.

Discount type Initial purchase gives error as attached

Please check it again, that time i was working on your site to fix the transaction amount.

For now we know that with any condition we have error in case with recurring subscriptions
I got the issue related to this and working on this. will update you again on this once fixed.

Thank you for understanding !
·
Friday, 19 June 2020 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Please keep in mind that after finishing all changes I have to now which files was changed in case when it would be override during plugin periodic upgrades

That what I want to offer for my customers now is initial discount for recurring subscription
I mean that I want to give discount for first recurrence of subscription and rest of recurrences should be in normal price
This discount should be used only once and generate correct invoices and number of recurrences (invoices)

So please for begin concentrate on this scenario
·
Friday, 19 June 2020 18:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Regarding issue to charge correct number of recurrences in case one tie discount, for now i've applied some temporary fixed at your site on below mentioned file.
/usr/share/comeleon_www/components/com_payplans/views/discounts/view.ajax.php

Related to transaction amount token the changes done on below mentioned file path.
/usr/share/comeleon_www/administrator/components/com_payplans/includes/rewriter/rewriter.php

Please take a look again on these mentioned issues and update us with response.

Thank you for understanding !
·
Friday, 19 June 2020 18:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Regarding issue to charge correct number of recurrences in case one tie discount, for now i've applied some temporary fixed at your site on below mentioned file.


Please let me know which discount def should I use
Initial purchase ?
Will it work on recurring subscription

I just want to now to do not lose time for testing scenario which is not ready now
·
Friday, 19 June 2020 20:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

In case if you want to apply discount coupon on first payments only then can use initial purchase or any condition, the fix will work in both case.
·
Friday, 19 June 2020 20:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Could you explain what is difference between initial purchase and any conditions ?
For me its works the same - there are only difference if I set multiply use or not
I thought that initial purchase witch multiply use set to on will enable to buy only new Plans (have to be different) and any condition do not have this limitation (and this is the difference)
But both works the same (multiply use set to on)
With initial purchase you can use coupon few times on the same plan
·
Thursday, 25 June 2020 06:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Could you explain what is difference between initial purchase and any conditions ?

Initial Purchase : Discount can only be applied on new subscription purchases.

Any Conditions : This coupon code is universal or can say global. This can be used on new purchase, upgrade and renewal of subscription as well as. With a this coupon type, it can be used at any point of time (subscription, purchase, upgrade, renewal) instead of a restricted usage type.

This is main difference between these coupon codes.

Let me know if you have any query.
·
Thursday, 25 June 2020 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry for delay

I was on one week holidays
I will respond tomorrow
·
Tuesday, 07 July 2020 04:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

No Problem. Keep us update if any issue persist.
·
Tuesday, 07 July 2020 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post