I'm using PayPal Client-side REST integration
https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/client-side-REST-integration/
and I would like to pass item name together with total and currency.
The item_name is obviously available for standard HTML forms
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/
I'm unable to find a proper way when working with client-side Express Checkout.
The developer documentation will have the information an adding an object and passing the information you're looking for. The document will show the reference for the Payments API along with a sample request.
https://developer.paypal.com/docs/api/payments/#payment
Related
Is it possible to display information in the comment1 and comment2 fields of the paypal admin interface using paypal payments standard ?
Could not find which variable to use ?
It sounds like you must be referring to the PayPal Manager (manager.paypal.com). The PayFlow Gateway API is where those comment parameters come into play, and Payments Standard does not utilize this API, so unfortunately that won't work.
Payments Standard does provide a single field called "custom" that you can use to pass your own data.
You may also want to look into Express Checkout with the PayFlow gateway and then you can probably include the comment fields, but I haven't specifically reviewed that documentation or tested it, so I can't say 100% for sure if that would work.
Does anyone know if it's possible to use a custom checkout page when doing Paypal REST API payments?
So far, I've not found anything, but the REST API is ever-evolving, but unfortunately still lacks some key components.
You can change the business name and the your company logo by creating the different "Experience Profiles" using REST API and passing the profile id in your Payment call . You can check the documentation here :
https://developer.paypal.com/webapps/developer/docs/api/#create-a-web-experience-profile
Apart from that you can change the business name from your PayPal account maunally by going to this url after logging in :
https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-business-info
Is there anyway to know if the refund was issued directly from PayPal web ui or via API (of some kind)?
Unfortunately there isn't one that I know of. They show up in the website and API the same way.
This is why I log all my API calls. Makes it easier to find out what your API calls have done.
While performing the refund thru API or PayPal account you can make use of the "note" field which will be displayed on the Transaction detail page . So you can pass the different text( some standard text ) while performing refund through API and different text while doing from PayPal account .
In this way you can differentiate between two types of refunds.
I need to submit the contents of my form from a form that computes the price of the order to the paypal checkout so that clients don't have to reenter product description and prices.
What options do I have?
If you want to stick to basic HTML forms you can use Payments Standard, specifically the cart upload method.
If you're comfortable with web service API's I'd recommend going with Express Checkout.
There are other options, but those are what I'd recommend starting with.
I'm setting up a payment engine for a custom framework using PayPal Express Checkout. One of the business requirements is adding support for recurring payments. I've found documentation on how to implement this at https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECRecurringPayments
The thing I don't quite understand is how to retrieve the value of BillingType from the API after I've set it via SetExpressCheckout to "RecurringPayments". It doesn't seem to appear anywhere in the response data I get back from neither GetExpressCheckoutDetails nor DoExpressCheckoutPayment. I need this to know whether I need to create a recurring payments profile or not. So as far as I can tell my only option is to store the value of BillingType in my database and query it again after DoExpressCheckoutPayment. This works for me but I find it odd that this data would not be returned at all by the API. Am I missing something? Or is there another way of correctly implementing recurring payments?
Not all data you send in a request is returned in a response. You already have what you're passing to them...there's really no need for them to pass it back.
You could use session variables to save the data instead of the database, or you could log all of your API requests and refer to those logs when you need to see what you sent, but again, your application is what's telling PayPal whether or not the payment should include billing agreement information...not the other way around.