- This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › Completing Registration From A Foreign Payment Gateway
Tagged: payment gateway
I’ve been really looking into this post here, https://www.tipsandtricks-hq.com/wordpress-membership/api-creating-a-member-account-using-http-get-or-post-447 about building a way to make it so a user can instantly register.
I do have a few questions though. First, I’d like to show a form that permits the user to create a username and password for entry.
Next, when they submit the form, it will test against wp-emember and if the username is already in use, it will throw an error on the form before creating the user. Is there a way to catch the error returned by wp-emember and show it on the form page and permit the user to try again?
Thanks,
Frank
Hi Frank, Use the following shortcode on a page to create the registration form. The plugin will handle all the username and email address checking for you as part of the form (you don’t need to do anything special):
Create a Registration Form for a Particular Membership Level
You could handle it like the following:
1) Create a hidden page where you have the registration form for a perticular membership level.
2) After they pay, send them to this hidden page so they can complete the registration form and get access to that level.
Alternatively, you could try the following also:
1) Create a form for a free level on a page. The user first goes to that page to create a basic account.
2) Then they can go to a page where they make the payment using your foreign payment gateway.
3) After the payment, you can update the member’s account to the level they paid for using the following API