Managing PayPal Donations, Add to Cart and Subscription using single request - paypal

I am using website payments standard and I have the following requirement. Please let me know if a solution is available for website payments standard.
I already have subscriptions integrated to my website. I would like to have a feature that enables the user to donate a dynamic amount along with the subscription. For that, I plan to add an additional text field for the amount in my payment page. I would like to know if it is possible to manage both donations and subscriptions in the same request.
Let me be more clear about the requirement.
When the user clicks a custom subscribe button, a page with a text field to enter a donation amount will be displayed. Suppose, the user enters a random amount. The user will then click the PayPal subscribe button and will be taken to the PayPal site for the payment. Both the subscription and donation have to be managed separately so that I can easily identify which one is subscription fee and which one is donated amount by looking into the PayPal statements.
Please let me know if this is possible with website payments standard. If not, can you please help me how to achieve this?
My additional requirements are:
I need to combine Add to cart button and Donations too.
I would like to manage subscriptions just like Add to cart feature. i.e., Paying for multiple subscriptions at once.
I am looking forward to your reply.

Is not possible to make both "Donations" and "subscriptions" in a single payment. Unless you treat the donation as an additional amount for your subscriptions initial payment.

Related

Using Paypal (or alternative) so my customers can sell items directly

I've been searching Paypal's products and docs and I can't seen to confirm or deny if Paypal is a solution for what I need, so wanted to ask the community.
I run a web platform for creators to spin up websites. One common request is to create a page for them to sell their merch. I don't want to re-create Shopify/etc.. so have been telling them to go use that and link to their store from their website. But I'm wondering if there's an easy way to give them a very basic store experience using standard Paypal Buy Buttons.
My ideal approach:
Create a ShopItems model and users add items with price, description, shipping cost.
User adds their Paypal merchant ID
I generate a Buy with Paypal button that simply sends info to Paypal about the product being sold, how much to charge, etc..
I dont need any shopping cart functionality, and I dont want to have anything to do with the payment. I just want the end customer to feel like they're purchasing something (not sending someone $ via venmo), and have a place to add their shipping info, etc..
Currently, I see how a user can create accounts in their paypal account and then they're given a specific button for that item, but I'm trying to make this a little simpler where the user creates the product in my system and I just use Paypal for invoice/payment.
Would love any thoughts / ideas.
Integrate a version of PayPal Checkout: https://developer.paypal.com/docs/checkout/
Some sample demo code here: https://developer.paypal.com/demo/checkout/#/pattern/client (use the server version if you need robust payment completion notification -- this requires implementing two routes on your server, one for 'Set Up Transaction' and one for 'Capture Transaction', documented here: https://developer.paypal.com/docs/checkout/reference/server-integration/ )
If you know the merchant ID you're processing transactions for, this can be specified when loading the SDK: https://developer.paypal.com/docs/checkout/reference/customize-sdk/#merchant-id
Whether or not you specify a merchant ID on the SDK line, that same or some other identifier needs to be specified in the purchase_units payee object when setting up the transaction: https://developer.paypal.com/docs/checkout/integration-features/custom-payee/

Paypal subscription to different number of projects

I am trying to create a subscription feature on my site. The users can subscribe to a number of projects (from 1 to 30). The price of a projet: 10$.
For subscribing I use a the Subscription button. I validate the payment using the IPN from paypal. All ok.
Now I want to give to users the possibility to change the number of projects they are subscribed for. But the paypal doesn't allow an increasing of payment more than 20%.
How can I change the user's subscription ? Should I remove his profile (not sure if I understant what it is) and create a new one ?
As you saw in the documentation, PayPal Subscriptions product doesn't seem like a good match for your requirements. You could have someone re-subscribe with new (higher) premium, but you probably would be better off with a product that allowed you to simply change the recurring amount billed.
PayPal has several other products that allow you to do that; hopefully one will meet your needs. In particular look at Recurring Payments & Reference Transactions (within PayPal's classic product suite) or Future Payments (within PayPal's RESTful API suite).

Paypal REST API for Donations

I'm trying to create a custom form with the ability to process credit card direct donations, as well as paypal account donations, and the ability to select whether the amount paid is a regular monthly donation or a one time. I cannot find documentation anywhere on how to use the paypal REST API for donations. There doesn't seem to be an intent type for donation anywhere, or any option for monthly or one time payments. Does anyone have any experience with this? I understand how the commercial payment API works, but I'm not sure what options need to be changed for donations.
The easiest way is to add Buy Now button to your site. It is just plain HTML code, no server code is needed. When someone donated you recieve email with details including amount of payment and email of donator. So you can reply him "Thank you" :)
Please note, in some countries you should verify your paypal account before accepting payments. It can be done in "View limits" menu.

Paypal - Recurring Donations URL

Paypal makes it really easy to create a donate URL. A donor can enter a custom $ amount or use a fixed one. We'll use the custom amount, since it's more flexible. Is there anyway to allow the donor to enter a custom amount, and have PayPal display a checkbox for example to allow this amount to be a recurring monthly donation via a URL?
We checked out the "subscribe" button, but it only returns a form, not a URL, and didn't see anywhere to let the donor choose the amount.
Basically, this should be an optional field in the donate URL. Any ideas on how to accomplish this?
You'll need to use standard subscription buttons or the Recurring Payments API. Either way you could setup your page so the user chooses those options on your site prior to being sent over to PayPal.
use cmd=_donations. Paypal will prompt for an amount and whether it is recurring.
PayPal now has recurring donations, for mobile checkout, by default. See this blog post.

Choosing the right paypal billing option

On my site, I have multiple billing plans, for example:
1$ = 5 points
2$ = 15 points
3$ = 30 points
When user chooses paypal option, I want him to be redirected to the paypal checkout page,
and on completion of transaction, I want to receive notification so I can grand the account
with points. I understand that can't be done with Pay Now button. Also, I can't understand what is the most right way to do so. Suggestion?
when i talk about paypal checkout page I mean this one
I would just create a drop down menu option to allow the buyer to select which one they are wanting to purchase. Then that will popluate the PayPal checkout page with the correct options selected, and amount. As for getting the information back to your site. I would use IPN.
Instant Payment Notification (IPN) is a message service that notifies you of events related to PayPal transactions. You can use it to automate back-office and administrative functions, such as fulfilling orders, tracking customers, and providing status and other information related to a transaction.
Checkout this page here for more on IPN. There are also some samples of IPN scripts, and additional links relating to IPN on the left hand side of that page.