Skip to content

Conversation

ryanr14
Copy link

@ryanr14 ryanr14 commented Apr 22, 2025

All Submissions:

  • Does your code follow the WooCommerce Sniffs variant of WordPress coding standards?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Will this change require new documentation or changes to existing documentation?

Changes proposed in this Pull Request:

This would add support for multiple subscriptions in one purchase via Payfast.
Closes PAYFAST-8: Can Payfast Support Multiple Subscriptions

Steps to test the changes in this Pull Request:

  1. Add this branch to subscriptions site.
  2. Attempt to purchase multiple subscriptions in one order.
  3. Profit?

Changelog entry

Add - Added support for multiple subscriptions purchased in one order.

ryanr14 added 3 commits April 22, 2025 09:44
Adds the required `multiple_subscriptions` feature support, so merchants can purchase multiple subscriptions in one order via PayFast.
Recorded a new potential version with support for multiple subscriptions.
@vikrampm1 vikrampm1 requested a review from dkotter May 2, 2025 22:12
@vikrampm1 vikrampm1 added this to the Future Release milestone May 5, 2025
@@ -145,6 +145,7 @@ public function __construct() {
'subscription_date_changes',
'subscription_payment_method_change', // Subs 1.x support.
'subscription_payment_method_change_customer', // Enabled for https://github.com/woocommerce/woocommerce-gateway-payfast/issues/32.
'multiple_subscriptions',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not tested things but are there no specific updates needed to support multiple subscriptions, things just work as long as we declare support?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is my understanding based on this doc section here, "Step 1.1: Registering Support for Subscription Management Features"

Copy link
Collaborator

@dkotter dkotter May 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading that section, it shows how to declare support in your extension for each of those subscription features. But we need to be sure multiple subscriptions actually work before we can declare that compatibility. Has testing been done to verify multiple subscriptions works here?

ryanr14 added 2 commits May 7, 2025 07:16
I had manually updated the changelog, not needed as the release process takes care of this.
The version number increase is handled during the release process, I don't need to manually change that.
ryanr14 added 3 commits May 8, 2025 02:16
… to add changelog entries or change the plugin version number. This is all handled by the release process.
@jeffpaul
Copy link
Collaborator

jeffpaul commented Aug 1, 2025

@ryanr14 thanks for working on this here, please reach out once your updates and testing shows that multiple subscriptions works as expected and ideally that existing Critical Flows pass as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants