• Resolved wei1994

    (@wei1994)


    I would like to ask 2 things:

    1. if let’s say I have a mobile app that needs connection to create new subscription.
    Is there any API to create a subscription on PMPRO?
    Because as far as I search, it is just to get detail (pmpro_rest_api_get_permissions_check, pmpro_rest_api_get_user_level, and pmpro_rest_api_get_has_membership_access). There is no API that can create a subscription. Thank you in advance.

    2. I check on Paypal dashboard there is no subscription plan created by PMPRO. But it’s magically can do recurring payment transaction. Is there a way I can see the subscription plan on Paypal dashboard? The reason I need to see the subscription plan is because I need the subscription plan id that PMPRO created on paypal.

    Thanks in advance.

    • This topic was modified 3 years, 1 month ago by wei1994.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hello,

    Thank you for reaching out to Paid Memberships Pro.

    1. You will need to accept payment through your mobile application, and upon successful checkout you may then use the REST API to change the user’s level. You may post data to the /change_membership_level REST API route – https://www.paidmembershipspro.com/documentation/advanced/api/rest-api/#change-membership-level

    2. The subscription should be setup as an automatic payment and show up inside your PayPal account. A subscription_ID / Token should also be available to retrieve from a third-party app to use as reference.

    I hope this helps get you started.

    Thread Starter wei1994

    (@wei1994)

    Hi @andrewza,
    Thank you for your reply, that’s really help me.

    Last question..

    Let’s say I accept payment through the mobile application then I update the membership level by API “/change_membership_level”.

    The user subscribe through the mobile app. If let’s say I update that user plan on PMPRO dashboard. It will be automatically change too? Or it’s different with the other users that subscribe through wordpress(PMPRO plugin).

    Plugin Author Andrew Lima

    (@andrewza)

    You would need to have a custom function to have a two-way sync when changing a user’s level inside WordPress.

    I recommend using the ‘pmpro_after_change_membership_level’ hook to send data out from WordPress to your application – https://www.paidmembershipspro.com/hook/pmpro_after_change_membership_level/ (This also runs when a member cancels).

    I hope this helps get you started.

    Thread Starter wei1994

    (@wei1994)

    I see, but when I change the level through the wordpress API “/change_membership_level”, it shows 0 billing amount.
    How can I change it?

    Plugin Author Andrew Lima

    (@andrewza)

    The API currently doesn’t support billing information. I recommend in creating a custom route to handle this for you and create orders as well.

    Thread Starter wei1994

    (@wei1994)

    I see, understood.
    Thank you for the informations.
    It help me so much to use the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PMPRO APIs and Sync Capability’ is closed to new replies.