Add custom payment method Open
NerdySupportExpert MoumitaKeymasterSeptember 11, 2019 at 8:44 amPost 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 NegoitaParticipantSeptember 12, 2019 at 12:49 amPost count: 8
Thanks for the answer but the responses to that thread are marked as private so i cant see them.
NerdySupportExpert MoumitaKeymasterSeptember 12, 2019 at 7:19 amPost count: 5108
@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
Alexandru NegoitaParticipantSeptember 13, 2019 at 12:46 amPost 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 );
NerdySupportExpert MoumitaKeymasterSeptember 16, 2019 at 1:26 amPost 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 NegoitaParticipantSeptember 17, 2019 at 3:01 amPost 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 MoumitaKeymasterSeptember 18, 2019 at 8:26 amPost 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