PayPal recurring payments: How to show transaction details in checkout page - paypal

I have setup recurring payments in Paypal for my website using REST API. For one time payment, I know how to display transaction details by providing values for item_list (as in https://developer.paypal.com/docs/api/). However I don't know what values we should provide so that recurring payment profile will be shown on checkout page as well. Right now the only information shown is subscription agreement description.
How to add subscription details like recurring payment amount, initial payment amount etc to the checkout page? Thanks a million!

how about creating a custom checkout page? using the landing_page_type with Billing value can make it work with much more then just recurring payments display...

I have the exact same problem. This is how I deal with it for the moment:
I set the pricing information as string text into the description field of Agreement.
The down side is:
A maximum of 127 characters is allowed in the description field.
No format, no line break, just plain text.
But it is better than nothing.

Related

How paypal payment flow will go? Is it possible to auto-generate paypal links?

I'm interested in using paypal to process my payments.
The payments will either be single time only or recurring (maybe some sort of checkbox for recurring vs. non-recurring).
I have a product price in my own database I want to use in paypal, and I have a subscription length in months in my database that I would like to use in paypal.
Is there a way in paypal to, based on my own information
Set the price of the transaction based on db value
Set as a recurring or 1-time payment. [form checkbox]
Set number of months of subscription length based on db value (paypal billingcycle)
If this is not possible what is recommended for me to do?
I would love if I could just auto-generate some link.
I found this: http://www.blogbyben.com/2009/04/paypal-link-generator-build-your-own-1.html
http://www.itaynoy.com/sites/paypal_button_generator/
but I need to be able to add more options like subscription length and recurring billing.
Thanks.
Are you attempting to dynamically generate a PayNow button? If so, this thread may be of some use to you:
automatically create buy now button paypal?

Add PayPal Credit option to the PayPal button

The PayPal Credit (formerly BML) overview page says the following:
How do I select PayPal Credit as my payment source?
There are two ways to choose PayPal Credit. Some merchants have a PayPal Credit option at checkout. If they do, you can simply choose that option. If you don’t see a PayPal Credit option, check out with PayPal, and then you’ll have the option to select PayPal Credit as your payment method. Either way a window will appear on your screen where you’ll provide your date of birth and the last 4 digits of your Social Security number, and then agree to the terms and conditions. Approval takes just seconds and you can complete your purchase.
I've tried several sites, and in some of them PayPal Credit appears as an option when you check out with PayPal (see Nordstrom, for example). In others, the PayPal Credit option does not appear (see KitchenAid). What parameter needs to be passed in the PayPal API for the Credit option to show up? I checked the PayPal button creator page, and there's no option to add PayPal Credit.
I realize this question is old, but the PayPal documentation is awful so this should save people time.
If you're using the PHP SDK you can set the PayPal credit to be the default payment with this method.
$payer = new PayPal\Api\Payer();
$payer->setExternalSelectedFundingInstrumentType('CREDIT');
The JSON for it is this
"payer":{
"payment_method":"paypal",
"external_selected_funding_instrument_type":"CREDIT"
}
If your account is eligible and enabled for PayPal Credit, you can use this parameter:
USERSELECTEDFUNDINGSOURCE = BML
in your ExpressCheckout API call.

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.

PayPal "Pay with Credit Card" and Item description

I have a few questions regarding using PayPal.
The first image is from an existing website, while the second is from a sandboxed Express Checkout test.
Differences between the two:
On the left side, there is an item description and quantity.
On the bottom right, notice it is Pay with my Credit Card instead of Create a PayPal account.
How do I achieve 1. and 2.? What APIs do I use?
Take note that my site has potentially many items for sale, and it is impossible for me to manually create buttons for each one.
Edited: Ok I just found the answer to 1.: https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECCustomizing/
For 2., the existing website actually prompts for details such as name, and address before redirecting to the PayPal site. When I click on "Pay with Credit Card", the details input earlier do show up on the PayPal form. I also notice the existing site can accept direct credit card payments, which seem to me it is using at least a Payment Pro solution. Is that why it can achieve 2.?
How do I achieve that? Do I use the AdaptiveAccount API to create an account on behalf of the user?
In order get the credit card section to display by default instead of the option to pay with a PayPal account, you need to pass over to additional variables in your SetExpressCheckout API call.
SOLUTIONTYPE=Sole
LANDINGPAGE-Billing

Paypal Web Payments Buttons

My website allows people to "sign up" for day trips. They must then pay a price based on their selection. Does paypal allow you to send your own payment values (as calculated by the amount of daytrips and the price of each one)?
Is there a way to program this value?
Cheers,
Dan
Take a look # the Direct Payment API. I think it supports all your needs
https://www.paypal.com/cgi-bin/webscr?cmd=_dcc_hub-outside
Also, you can test your application in the PayPal Sandbox
https://developer.paypal.com/
How it works
For each payment, Direct Payment API
takes the billing address, transaction
amount, credit card information, and
item information as inputs. Within
seconds, the API returns a
confirmation that the transaction has
been processed.