Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create subscription delay one time credit card required trial #209

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ipokkel
Copy link
Member

@ipokkel ipokkel commented Nov 12, 2024

No description provided.


//set this to the id of your trial level
$trial_level_id = 1; // Membership Level ID
if ( ! empty( $_REQUEST['level'] ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This check needs to change, and any other instance of $_REQUEST['level'] we can use the pmpro_getLevelAtCheckout() or from the $level (object) directly.

Copy link
Contributor

@andrewlimaza andrewlimaza left a comment

Choose a reason for hiding this comment

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

Move away from the $_REQUEST['level'] as we now prefix the level query parameter at checkout.

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.

2 participants