PayPal payment issue for orders with decimal quantity - paypal

We are using paypal payment method in our website. We have integrated the form post option for paypal payment process.
If quantity with integer value is given the process is working fine without any hustle.
Recently we have updated the quantity to decimal which is needed for our business process.
But quantity with decimal values(10.5) is given the request returns bad input error.
Please find the screenshot.

Related

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

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.

paypal - invoice field not returned

Payment is created using IOS SDK. Invoice field is set on payment - and it is returned in payment confirmation (on IOS). When I request for payment using this API https://developer.paypal.com/docs/api/#look-up-a-payment-resource on server, it is returned with transactions, payer etc, everything but invoice field (also tried with custom field). Using sandbox API. How can I get invoice number/custom field by payment id?
Dave from PayPal here.
Contrary to what I posted just a moment ago about a possible PayPal server bug, we've now done a bit more investigation.
The invoice-number and custom fields should be coming through just fine for PayPal payments. However, if you try a Credit Card payment you will not currently see these fields. The credit card issue should be resolved within the next few weeks.

Paypal Express Checkout paymentinfo_0_amt value returned

I am testing using the sandbox at the moment new functionality to use paypal express as a payment method. I have successfully made a payment and am inspecting the returned
values from the DoExpressCheckoutPayment
One of the fields returned is PAYMENTINFO_n_AMT and my vbscript code is
PPFamt = resArray("PAYMENTINFO_0_AMT") ' The final amount charged, including any shipping and taxes from your Merchant Profile.
I would expect this value to match the total amount being requested (from the Set) but
it seems to be rounded.
i.e. if I request a payment of 217.85 - the PPFamt value is 218.00
if I request a payment of 66.90 - the PPFamt is 67.00
I am using GBP currency for both the seller and buyer accounts.
Has anyone else come across this? I can't see that I am doing anything wrong or rounding it in the code, so I am assuming Paypal is doing this.
Any advice appreciated.
User error - paypal was just returning the value I sent in the DoExpressCheckoutPayment stage.

Manipulating txn_id in shopping cart for receiving Paypal IPN

My shopping cart for a ski lessons website works as follows:
A customer selects dates that they want ski lessons on. Some dates have different prices, for example school holidays and weekends. They submit the selected dates, and the event and its details is provisionally logged in an SQL table with a random transaction ID.
The shopping cart has also added up the cost of all the selected dates and creates a Paypal Advanced Buy Now Button with the price.
The customer pays for their selected ski lessons Paypal which sends an IPN back to my IPN listener for verification and to confirm the order.
There's a problem with this though, my IPN script only knows how to verify for a static price, and since every order will have a difference price depending on selection, I need to relate the received IPN to the specific order that was originally placed.
After some poking around I wondered if it is possible to manipulate the txn_id to be the same as the random transaction ID set in the first step above. That way when the IPN report comes back the script will know know exactly which event it is referring to and I can compare the details of that event (e.g. the amount paid compared to the amount calculated_ to the variables returned in the IPN report.
Is it possible to manipulate the txn_id, or otherwise send a different identifier with the Paypal button so that I can identify the payment?
It's possible to send the identifier in the "invoice" field, which PayPal will send back in the IPN.

Paypal mulicurrency payments

On our site user can make paypal donations to other users in different currencies, but we want to hold payment statistics in USD, is there any way to get in the paypal IPN payment gross, automaticly converted to US Dollars?
you achieve this by getting the gross in that currency and then multiplying it by the current USD rate. you can not get it in IPN because it sends variable only relating to your transaction. you need to do it manually when variables are received.
curent currency rates can be get by PayPal Api for currency conversion, here is link to documentation:
PayPal Currency Conversion API
Hope this helps.