Problem/Motivation

Currently, if you purchase order and the payment gateway does not support saving the card on your profile, a subscription will not be created, as there is no way for the auto-recurring process to work an available payment method

Steps to reproduce

Purchase a product and select a payment method that does not support a card on the profile, like bank transfer for example.

Proposed resolution

Create a subscription even if no payment method provided, but an end date should be set to the subscription and no recurring order should be created.

Remaining tasks

Patch to support this

User interface changes

None

API changes

none

Data model changes

none

Comments

Anas_maw created an issue. See original summary.

anas_maw’s picture

Status: Active » Needs review
StatusFileSize
new3.1 KB

Here is a patch so start from

Status: Needs review » Needs work

The last submitted patch, 2: 3189954-2.patch, failed testing. View results

anas_maw’s picture

The test fails because it's checking if there is a subscription when there is no payment method.

recidive’s picture

Category: Support request » Feature request
Status: Needs work » Postponed (maintainer needs more info)

@Anas_maw doesn't just enabling trial will work for this case?

recidive’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Marking this a duplicate of #2919602: Allow manual renewal of subscriptions.

Please let me know if this is a different use case.

jeff veit’s picture

Imo "Create a subscription even if no payment method provided, but an end date should be set to the subscription and no recurring order should be created." is wrong.

I can see two reasons:

1. There is nothing wrong with having a subscription but no payment details. If at the point of subscription renewal the order is not paid for, that's when the subscription gets cancelled. It could be paid by cheque, or IOU, or barter, or cash. And the payment method can be different each time renewal comes round. Why should a subscription be intimately tied to a payment method? All that matters is whether the renewal is paid. So you should have a follow-on order, and leave it to that follow-on failing to be paid for triggering cancellation. *

2. You should be able to have post paid subscriptions, where the payment details are taken at the end of a period. Low-value subscriptions can work like this - the seller only loses one period's worth of goods. Digital goods too. There's no reason for the subscription to have an end date. It should cancel when the recurring order is not paid.

Edit: * As a practical matter, a store might only want to sell subscriptions where there is a card attached, but Recurring shouldn't be tied to that arrangement.

Edit: Just to be clear, I think it should be possible to set up a subscription without a recurring payment method. I'm simply saying that the recurring order should be created, and should fail, later, when it's not paid.

shaldrupal’s picture

I'm also facing similar type of issue & summary posted over there: https://www.drupal.org/project/commerce_recurring/issues/3207157
If someone has any solution then please share ,thanks in advance.

shaldrupal’s picture

StatusFileSize
new1.12 KB

created a patch to allow the subscription without payment method

shaldrupal’s picture

Ignore last patch #9 & follow revised patch which allow subscription even no any payment method defined.