Add custom payment method Resolved
September 11, 2019 at 7:35 am #73463
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.
September 11, 2019 at 8:44 am #73477
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
September 12, 2019 at 12:49 am #73497
Thanks for the answer but the responses to that thread are marked as private so i cant see them.
September 13, 2019 at 1:32 am #73631
Also, could you point me to the hook to disable all of your standard payment (stripe and paypal) without modifying the core files ?
September 12, 2019 at 7:19 am #73560
@Alexandru Please check again, I have made that thread public : https://wc-marketplace.com/support-forum/topic/error-when-vendor-tries-to-sign-up-2/#post-24515
September 13, 2019 at 12:46 am #73630
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 );
September 16, 2019 at 12:59 am #73860
September 16, 2019 at 1:26 am #73865
@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 );copy
For further reference check how we have integrated payment gateway such as PayPal / Stripe.
September 17, 2019 at 3:01 am #73978
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 ?
September 18, 2019 at 8:26 am #74113
@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.
October 1, 2019 at 8:29 am #75336MOUMITA HaldarParticipant
Hi @Alexandru Negoita,
I presume that your issue is resolved, since, we haven’t heard back from you.
We are marking this thread as resolved.
Kindly open a new thread if you face any further query.
The topic ‘Add custom payment method’ is closed to new replies.