Have 2 plans:
free plan
paid plan (child of the free plan = Silver Plan)
Steps to duplicate the issue
User have already subscribed the free plan
User login and suscribe the paid plan, by offline payment, up to printing the payment slip
Next, in subscription module, he has: "Silver Plan Subscription: unpaid. Pay Now"
- He click on "Pay now" and system opens the Plans Tab
- He Confirms "Pay now"
>>> error message when presenting the invoice and invoicing address <<<
Warning: createSubscriptionsAndPayment::no existing subscription for parent plan id 1 of plan 2 in new subscription ! in C:\xampp\htdocs\ayudapenitenciaria.com\components\com_comprofiler\plugin\user\plug_cbpaidsubscriptions\cbpaidsubscriptions.php on line 2079
A payment basket is pending in progress for payment for this. Are you sure that you didn't already pay for this ?. Here you can pay again:
And he follows to pay again (offline)
This generates new Payment Slip
Now Backend has 2 payments pending
subscription module still have: "Silver Plan Subscription: unpaid. Pay Now"
- user click on "Pay now" - it opens the Plans Tab
- user Confirms to "Pay now"
>>> error message when presenting the invoice and invoicing address <<<
Warning: createSubscriptionsAndPayment::no existing subscription for parent plan id 1 of plan 2 in new subscription ! in C:\xampp\htdocs\ayudapenitenciaria.com\components\com_comprofiler\plugin\user\plug_cbpaidsubscriptions\cbpaidsubscriptions.php on line 2079
A payment basket is pending in progress for payment for this. Are you sure that you didn't already pay for this ?. Here you can pay again:
And he follows to pay again (offline)
this generates a new Payment Slip
Now Backend has 3 payments pending
Etc, etc, etc multiplicating all
In the meantime:
- the user has x Pending Invoices
- the backend basket has x pending payments
Now the user is back again to "Pay Now" and, this time the user click on cancel "Payment and Subscription"
He receive the confirmation:
- on screen, "Payment cancelled. Your request to cancel the subscription and invoice has been processed successfully".
- and the cancellation confirmation email
But it don't change anything: the system still displays "Pay now" + the invoices for the user, The basket is also still full of the pending payments (that can still be payed !!).
- Why should he "Pay Now" something cancelled?
- Why is the payment basket not empty?
- Why does the user still have x invoices pending for the same cancelled subscription?
More problems with all that multiplicated invoices are also for the accounting
- Paying one of these basket payment leaves all other baskets open for payment and, by consequence, the user has invoices as pending, except for the paid basket.
- 'Total payment amount pending' not corresponding to the real situation
- If admin pay more than one of that duplicated baskets, false account balance in 'Total payment amount received'
Suggestion for Offline payments:
When user uses the offline process and click to try to pay again (eg. from 'Pay now' in the module):
- If he choose once again to pay offline, the system should warn him about a pending payment slip and, instead of creating a new one, the system shows the original pending slip (in case of a user having lost it)
- If he choose an other way to pay, eg. Credit card, the system, on completing the CC payment, should delete the offline pending payment invoices/basket/slip.
- If he choose to CANCEL "Payment and Subscription", the system should delete the offline pending of payment invoices/basket/slip and reset the module.