Other payment gateway

From another payment system, all I need to implement is the URL they give me.
Is it possible to implement that in S2Member?
If so, how can I do that?
Thanks, Ph.

Here are three things you could use to integrate a new gateway:

I hope that helps! :slight_smile:

I don’t think that I will be able to do that.
Are there programmers who can make that work?

I have the payment system configured on my website, after the payment (now in test) I get a message “thank you for your order”.
I assume that I can connect this with the “modify_user” from S2Member?
I can also redirect to another page after a succesfull payment.

Could it be possible that after a successfull payment, the user is redirected to another page and on that other page there is a script that modifies that user his membership level?

You could do that.

This article shows an example of how to change the user’s role or capabilities. https://s2member.com/kb-article/rolescapabilities-via-php/

For the redirection you can use wp_redirect… https://developer.wordpress.org/reference/functions/wp_redirect/

Are there programmers who can make that work?

You could ask @krumch or other developers on freelancing sites.


Thank you for the information Christián, this (https://s2member.com/kb-article/rolescapabilities-via-php/) might be what I need.

Do I on the new page (where the user is redirected to) put the php code so that it is executed (sorry I am not a programmer).

But in the code I see:
$user_id = 123;
$user = new WP_User($user_id);

But the user ID is variable, it depends on who is logged in so what do I put at user_id?
I just need code to be executed on a page that sets the role to another level.

If I have that, I think it might be enough.
Are there examples about that somewhere?
Thank you, Philippe.

You could probably use this:

$user = wp_get_current_user(); 

And put that in a page that requires the user to be logged in (e.g. level 0 restriction).

I hope that helps. :slight_smile:

Thank you, thank you… That is it! :slightly_smiling_face:
If you ever visit Bruges, I’ll buy you a beer!

1 Like