pmpro-network icon indicating copy to clipboard operation
pmpro-network copied to clipboard

Stripe Checkout Offsite Flow does not automatically create the site after checkout

Open MaryOJob opened this issue 1 year ago • 2 comments

Describe the bug When the payment flow to checkout offsite is selected with the Stripe gateway, the site details despite being filled at checkout do not automatically create the site the member has paid for. They need to manually go to the "Manage Sites" page to again fill in their site details to create the site they have paid for.

Steps to reproduce the behavior:

  1. Activate PMPro on a Multisite
  2. Activate the Member Network Sites Add On
  3. Generate the Manage Sites page and edit any membership level to include the number of sites a member gets
  4. On the PMPro Gateway Settings page, set Stripe payment flow to happen offsite on Stripe
  5. Complete a checkout on the level, fill in the site details, name and title
  6. See the issue, the site is not automatically created after checkout
  7. Note that the site is created on the network list of sites but not linked to the user who checked out offsite at Stripe, creating the site on the "Manage Sites" page after checkout however creates another site and links it to the user correctly

Screenshots If applicable, please attach a screenshot to make your issue clearer. Screenshot 2024-08-06 at 12 07 40 PM Screenshot 2024-08-06 at 12 08 45 PM Screenshot 2024-08-06 at 12 09 02 PM Screenshot 2024-08-06 at 12 09 49 PM Screenshot 2024-08-06 at 12 10 47 PM Screenshot 2024-08-07 at 12 28 01 PM Screenshot 2024-08-07 at 12 35 05 PM

Expected behavior As with the Stripe onsite checkout where the site gets automatically created, the same is expected to occur when the checkout flow is set to Stripe offsite as well.

Isolating the problem (mark completed items with an [x]):

  • [x] I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin and Member Network Sites Add On is active.
  • [x] This bug happens with a default WordPress theme active, or Memberlite.
  • [x] I can reproduce this bug consistently using the steps above.

WordPress Environment

``` - WordPress version 6.6.1 - PHP version 8.0.30 - Paid Memberships Pro Version 3.1.2 - Member Network Sites Version 0.5.4
</details>

MaryOJob avatar Aug 06 '24 10:08 MaryOJob

Moderators Only: #585320

MaryOJob avatar Aug 06 '24 11:08 MaryOJob

Moderators Only: #643635

ipokkel avatar Apr 22 '25 05:04 ipokkel