How to setup add payment method like odesk using asp.net - asp.net

I want to develop an application to setup a payment method like odesk works in contractor account and my coding language is asp.net.
Please help me.

This is a pretty open-ended question, but I'm guessing that what you're after is a split payment..??
The Adaptive Payments API would be used for that, specifically Pay.
You've got options for using Parallel Payments or Chained Payments. Depending on how you want things to flow you'll have to make that decision and adjust your API request accordingly.
PayPal provides an SDK for .NET that you can get here. It will allow you to setup the Pay request the way you need to.
You're going to need a sandbox account for testing purposes, and then you'll need to get your application approved by PayPal in order to obtain a live App ID (the app ID is a parameter that gets passed in the headers of Adaptive Payments API requests).
You do all of that through your PayPal developer account.

Related

Woocommerce Membership REST API check if user has a membership plan

I ma developing a mobile app with a wordpress backend that was developed by someone else and the person is unreachable. I have the usual Woocomerce membership plans built on the backend. The website works perfectly fine. The issue is this
I checked the REST API endpoints through 'discovery' and found all the usual endpoints, but my issue is how will i test the if the user has a membership plan via REST API. I have already wasted a lot of time figuring out the solution.
/wc/v3/memberships lists all the endpoints
/wc/v3/memberships/plans/ lists all the plans
when i make a call to all these endpoints, it gives me all the users which have memberships.
My question is how would i know if the current loggedin user has purchased a membership, there is no such specific endpoint to it, plus the docs are not very specific. They are vaugue. Good enough for a beginner but not for a production level.
This is the url which i am referring to, which i got from the "official" Woocomerce Membership website
https://skyverge.github.io/woocommerce-memberships-rest-api-docs/#get-user-memberships
Use this endpoint :
GET http://example.com/wp-json/wc/v3/memberships/members/
Just replace with current user id. you can get current user id through this endpoint :
GET http://example.com/wp-json/wp/v2/users/me

How do I use a web hook using Stripe and ARMember in Wordpress

I am working on a project with a third party website, in which I will create a membership recurrent plan, gather customer's information, store it, and charge the customer. Upon subscribing, the customer's credentials and information will be passed via an API to a third party website, where they will be able to access the service.
For the membership setup on my website, I am using ARMember, which is connected to a Stripe account. I am working with a developer for the whole API setup with the 3rd party website, but as a requirement, my developer is asking me to provide the webhooks We need a hook that can give user-object or user-signup details after the successful payment event.
Forgive me for being a newbie, as I am not a developer nor anything close to that. I have never worked with webhooks before.
In looking into ARMember's webhook documentation I found this, which I believe it is what my dev needs, arm_payment_gateway_validation_from_setup, however, there are no clear instructions on what to do with this, or how to use it. I guess they assume users seeking webhooks know exactly what to do with them, which is not my case. Please help anyone! Will be so grateful!

PayPal dummy accounts

This is completely new territory for me. I'm in the process of getting up to speed with WordPress with the aim of using it as a resource to raise funds for charities. I've been looking at links such as:
https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/
and
https://www.paypal.com/us/selfhelp/article/How-can-my-charity-or-nonprofit-use-PayPal-to-collect-donations-FAQ1068
together with a number of other resources, but I need to know exactly where to start from scratch.
Basically I would like to set up a test PayPal account which can accept dummy credit card numbers for both dummy deposits and withdrawals in order to test it out in such a way that from a WordPress theme I can make mock donations, then check that the "balance" has been credited, then be a dummy charity that can make mock withdrawals.
Presumably there are free test accounts that can do this with documentation. I've looked at some of the documentation, but it would be nice to know where to start, as there is so much.
Looking forward to some friendly and helpful reply.
Christopher Sharp
To answer this question simply, use https://www.sandbox.paypal.com.
If you want to manage all your sandbox accounts, you will need to create the accounts within PayPal Developer.
Visit PayPal Developer and sign up for a PayPal account or login to an existing one.
To access PayPal Developer site, you need to login with a real PayPal account (non-sandbox).
Create a sandbox account after logging into PayPal Developer.
You will be creating a testing account you will use when logging into the testing environment.
After creating all the accounts you need, ie. receiving side (you) & sending side (donator), you can use these accounts to make sandbox transactions.
Basically, production is www.paypal.com and sandbox (testing) is www.sandbox.paypal.com.
As with PayPal integration with WordPress, there should be a lot of plugins for this. You can even just generate a HTML donate button from within your PayPal account to create a donate button that will send donation to that account which generated the button.

Multi merchants with PayPal API

I am a payment processing site for several different companies. I currently use Cybersource and it allows me to pass transactions under separate company credentials so payments are processed to the correct company.
With PayPal, I am trying to find which API I should use so that I can do an Express Checkout payment and pass different usernames and signatures for different companies. So far NVP seems like one that would work but I am using VS2015 with ASP.Net (VB).
The SDK for PayPalCoreSDK.Dll uses a Configuration.cs file to store credentials. I don't know how to provide each company's credentials "on the fly".
Any suggestions? Thanks!
PayPal provides option to use 3rd party API permission. Your system will do the API call and you will include the email address of other companies in subject field to receive the payment.
https://developer.paypal.com/docs/classic/admin/third-party/

Triggering a Stock change externally with Restful or HTTP

I run a Woocommerce site, and I would like to trigger stock quantity changes via HTTP or via Restful API remotely.
I am asking because I run an e-commerce site, as well as a physical storefront, and I need them to talk to each other, and keep stock in sync.
How do I go about doing this?
Thank you.
There are many different possible approaches but it all depends on your POS system.
If it needs to be done via API you can write a controller to post to the inventory server, hooked in after hearing a success message from the payment gateway.

Resources