I made a website ASP.NET MVC which use PAYPAL to manage payments.
I want to know when the payment is received by paypal account and save the information into my database.
The situation is the following:
TWO OR MORE USERS
USER_A has product which want to sell
USER_A subscribe an account in my Website,
USER_A provides is paypal email account to my website
USER_B SEES USER_A'S PRODUCT
USER_B WANTS TO BUY IT
USER_B MAKE ORDER IT
USER_B PAY BY PayPal
to do that I have followed the instruction from here
everything works good, although there a problem,
to get the notification of payment into my website the USER_A (who receives the payment)
has to enable IPN notification into his paypal accaunt and set URL for notification.
Could be nice avoid that the user does that manual and make a automatic procedure to do that, my achievement is
USER_A SUBSCRIBES AN ACCAUNT INTO MY WEBSITE
USER_A PROVIDES HIS PAYPAL ACCOUNT
USER_A CLICK A BUTTON AND HIS PAYPAL ACCOUNT GET IPN SETTING INFORMATION BY A "PAYPAL API"
Is that possible? I spent so much hours into paypal API info websites but I haven't found anythings valuable. Is there anyone who as manage that problem?
thanks
michele
You can't update somebody's profile setting via the API, but you can include the NOTIFYURL parameter in your API request and that would simply override what is in the profile.
You could even setup a listener that you host and have your application send all the IPN's to it so that you can generate personalized email notifications, update your database, hit 3rd party web services, or anything else you might want to automate for your customers.
You could actually go ahead and give your sellers the option to setup an IPN URL that they want to use separate from what you're sending in NOTIFYURL so they can do their own processing, too. Then you would actually POST the same IPN data from your listener on to their listener. I actually wrote an article on this awhile back you might be interested in: Daisy Chaining IPNs
Related
One of my client Ruby on Rails project have a functionality of get payment from customer in his stripe account.
Now, He needs to pay that payment to the item owner after deducted commission. So, how we can pay from stripe account to particular customer account using API in Rails?
I have checked many API's but not clear which exactly use for it.
Any one have a idea or experience in it?
Thanks
See the Stripe guide on Using Checkout with Rails.
I am not positive if a customer token can be used to send funds to, but if so or not, the following still applies.
If the customer has a connected account (or customer token), you can then use "transfer" to transfer the funds to them.
I am trying to integrate my web app with Amazon Simple Pay, so that users can pay for added functionality on the website.
Once a user makes a payment, I need to update that user in the database to mark them as being paid. It seems, however, like I can't send up any data, like the USER ID, so when my IPN comes back from Amazon, I don't know how to link the payment information with the user. How can I do this?
I have integrated EventBirte Ticket widget on my site, when some one buy that ticket and make payment and confirmation URL is there that notify me that payment process done with success or or not, but think is that I need a test run with paypal sandbox, to test all my work process.
One thing more I am using EventBrite PHP API for generating Event and Ticket.
Any one have an idea please let me know.
You can test your code without generating any fees by setting up an event with free tickets.
Eventbrite is always free to use whenever your tickets are free.
You should be able to use the Eventbrite API payment_update method, or the web-based event administration interface to configure your paypal email address (or a paypal sandbox email address).
I would refer to this question for help with post-purchase notification hooks:
Are there any callbacks available in the eventbrite api?
Ok so there is this feature that I would like to implement on my site. Users can choose to donate money to a specific nonprofit (let's say Wikipedia). So they click donate and they choose the amount on the website, get redirected to PayPal website, complete the transaction, and then get redirected to my website AFTER I get some Instant Notification, with which I track that donation in my website database with the users info.
I looked up some Railscasts video about PayPal, but they were all mostly about e-commerce. How can I set up the system to wire the money directly to Wikipedia's PayPal account and how can I get the notification back? I really could appreciate it if someone could assist me with this.
P.S I am running the localhost server for now, will that be a problem?
What you're trying to do is called a "third party transaction" since the first two parties to the transaction are the donor and the recipient org (eg Wikipedia).
From my quick search of PayPal, I don't think it is supported. Even if it is supported, you'd need approval from each of the recipients to set it up. Eg see this Paypal 3rd party shopping cart article
Amazon Flexible Payments Service does support third party payments. Again, you'd need the co-operation of the recipients.
You could have the donors pay money to you which you would then turn around and donate to the non-profits. But to do so, either your donors would lose the tax deductions or you'd need to become a non-profit yourself. In addition, there would be two sets of transaction fees, yours and the recipients.
I have few questions on paypal's recurring payments, I went trough the paypal documentation to find some answers but, it didn't help me much.
Here are the stuffs that I need to know, hope someone can help me on these.
I'm using paypal's standard payment account. So far I managed to create recurring payments with paypal by posting NVP's to paypal from merchant website to paypal.
Now I need to show recurring payment profiles on merchant web site. So that customers can cancel, modify recurring payments from merchant website without redirecting to paypal.Is this possible?
Think I should use paypal's SOAP API for this as I can't get the job done with NVP API. So I installed active merchant as described in this post. But I always get an error
This transaction is invalid. Please
return to the recipient's website to
complete your transaction using their
regular checkout flow.
from paypal and it never send me the token back.
Also I got this on my log
Security header is not
valid
Is it because I use sandbox API credentials or is it because I can't use paypal's standard account with SOAP API?
Usually the "security header is not valid" response comes from using sandbox credentials in the live environment or vice-versa. AM will use the sandbox when your Rails app is in development mode, so be sure you are using the right set of credentials.
When I was integrating PayPal's recurring payment profiles into the SaaS Rails Kit (using ActiveMerchant) I ended up just canceling a user's current profile and creating a new one when they wanted to change their subscription.