WCMp bundle is available at a slashed price

Grab It Now

Add custom payment method

Add custom payment method2019-09-11T07:35:02-05:00

Home Support Forum WCMp Vendor Membership Add custom payment method

WCMp Vendor Membership

Add custom payment method Open

Tagged: , ,

  • Author
    Posts
  • Alexandru Negoita
    Participant
    Post count: 8

    I would like to add a custom payment method to the vendor upgrade/buy checkout page. Could you please provide me a hook/documentation so i can achieve this ? It would be much appreciated.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5108

    Hi @Alexandru Negoita, thanks for the query.

    You can find the hook/filter list here – https://wc-marketplace.com/support-forum/topic/error-when-vendor-tries-to-sign-up-2/#post-24790

  • Alexandru Negoita
    Participant
    Post count: 8

    Thanks for the answer but the responses to that thread are marked as private so i cant see them.

    • Alexandru Negoita
      Participant
      Post count: 8

      Also, could you point me to the hook to disable all of your standard payment (stripe and paypal) without modifying the core files ?

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5108
  • Alexandru Negoita
    Participant
    Post count: 8

    I’ve looked trough the code and i cant find any of these actions in the membership plugin or into the wcmp plugin.

    Could you please explain to me what parameters for this action are ?

    “do_action( ‘wcmp_vendor_membership_create_third_party_payment’, $this->method, $this->user_id, $new_user, $this );

  • Alexandru Negoita
    Participant
    Post count: 8

    @moumita

    Any answers regarding this ?

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5108

    @Alexandru Negoita, After hearing from you, we checked the coding.

    There was some modification in our code. Sorry for the inconvenience.

    So, you need to create a new class and load that on apply_filters( 'wcmp_membership_gateways', $load_gateways );

    For further reference check how we have integrated payment gateway such as PayPal / Stripe.

  • Alexandru Negoita
    Participant
    Post count: 8

    A question if i may.

    How can i make a normal user (contribuitor or customer) a vendor from PHP coding ? And add its membership ? Do i need to add all the meta manually ? Or is there a function that dose that automatically ?

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 5108

    @Alexandru Negoita, our replies are inline :

    – How can i make a normal user (contribuitor or customer) a vendor from PHP coding ?

    >> kindly check the code of our membership and see how we are adding a user as a vendors to a site.

    – And add its membership ? Do i need to add all the meta manually ? Or is there a function that dose that automatically ?

    >> Currently there is not a single function. So, kindly check our code properly and see how we are using a payment gateway to receive money and how we are using their success/failure response to add a vendor.

Please LOGIN to reply to this topic