New version - can't buy another subscription, upgrade only?

Very annoying, the new version seems had some changes.

We are using membership as one-level for one-plan(subscription). But after purchased Plan1, I can only upgrade to Plan2. Have I missed anything?

I'm using these 3 functions:
create_subscription()
_record_transaction()
update_user_meta()

Unsure I made any misunderstandings.

Please advice.

  • aristath
    • Recruit

    Hello there @tigernsw, I hope you're well today!

    You mentioned you were using these 3 functions:
    create_subscription()
    _record_transaction()
    update_user_meta()

    Where exactly are you using them? Could you please provide some more info on your implementation so that we may understand what is happening here?

    Please advise,
    Ari.

  • tigernsw
    • Design Lord, Child of Thor

    Sorry for the confusion, for the second question, we used the 3 functions for eWay payment gateway integrations.

    We need to update member's information after the success payment. Are those 3 functions the right ones? Are they enough? Should we use hooks?

  • Jack Kitterhing
    • Code Norris

    Hi there @tigernsw,

    Hope you're well today and thanks for your question.

    Currently membership relies more on classes than hooks, but we are adding multiple hooks into membership 4.0.

    In the mean time, they are the correct ones to use, but I'd also recommend taking a look into the PayPal standards payment gateway, as all the code is documented inline :slight_smile:

    Thanks!

    Kind Regards
    Jack.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.