When I try to request a receipt for a ride in sandbox, the response seems to always come back as 9 USD. The amount I don't care too much about, but the currency is problematic. The request is made through the API (sandbox), and both estimate and actual ride request return the fare amounts in the local currency which might or might not be USD. Is there way to get the receipt also in local currency?
And is this just an omission in the sandbox implementation or will the receipt also be in USD in production API? The documentation does not mention any parameters for the receipt endpoint other than the request id (https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-receipt-get)
I'm testing with API version v1.2
Well, apparently from the site you provided, the currency is automatically adjusted to the location:
Currency
Currency is returned as the local currency of a given latitude & longitude. A fare estimate in San Francisco will be given in USD, while a fare estimate in Paris will be displayed in EUR. We also provide the ISO 4217 currency code for your own conversions.
I'm referring to https://developer.uber.com/docs/riders/guides/localization.
Well, definitely seems like the sandbox receipt is just not working properly. When I do a request live and then fetch the receipt for the request after ride has completed, I will get the excepted local currency also on the receipt.
Related
I accept webhooks from AppStore, but I'm wondering why there's no price the user paid for the subscription? I mean in transaction info JWSTransactionDecodedPayload. Also I couldn't find any other API methods to get the price.
The reason I need the price, because there may be different cost and commission the customer has to pay, depending on his country or something else.
We can only get the price from client with SKProduct in Original StoreKit by SKProductsRequest, or with Product in StoreKit 2 by products(for:) for now.
Or we get the price from App Store Connect with ProductID configured on Apple. However, price currency is related with AppleID, means we also need currency to confirm how much user paid.
I think why receipt not contains price is also for this reason. Apple could not represent all prices with different currency in a receipt, so only provide ProductID for us to query.
Is there any way to retrieve the transaction fee charged by Paypal using the REST API?
I've got a mobile application that makes a charge using the Paypal SDK, and then posts the transaction ID to the server. I'm trying to use this to get the transaction fee from Paypal.
Looking at the documentation, it looks like the fee should be returned as part of the details object, though it's not clear how to get this from the payment.
For example, if I get the payment using the following endpoint:
/v1/payments/payment/PAY-XXXXXXX
The response returns information about the transaction, including the amount and currency, but nothing about the Paypal fee.
I've also tried looking up the sale (/v1/payments/sale/XXXXXXX) but that doesn't return anything about the Paypal fees either.
Interestingly enough, I don't seem to be able to view this information either from the transactions grid in the web interface, but I'm sure this information was definitely available in the old version of the web interface (before the redesign).
Not sure if I'm missing something obvious here.
Unfortunately, despite being documented, it seems this hasn't been implemented. According to PayPal Merchant Technical Support, on 02/16/2015:
"Kindly take note that transaction fees will not be returned in REST APIs response and I am not being able to ensure whether this will be implemented in future."
I learned that fee tracking was a requirement for my company's PayPal implementation, and I ended up switching to SDKs as a result.
The details object of the amount object has a fee field, which when you look up the sale using the URL you mentioned above should be in each transaction in the transactions array.
This should return the value you are looking for.
I am using REST API to enable Paypal option on my site. To help the finance department for future taxation issues, I am trying to set up VAT rates based on the country.
After googling a bit and checking the documentation, found out Paypal's tools for setting the sales tax - https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/ProfileAndTools/#id08A9ED090WS
But after setting the value on the config page like this:
I still cant see any tax information while I am trying to buy some test items (I had to cover some parts of the screenshots :/ )
And after a successful test purchase, I get tax=0.00 in the IPN response.
Am I missing some points on the documentation about using the auto-tax calculator of Paypal? Even setting taxing data while sending request to Paypal does not let me see the taxing information and other details on the form.
PayPal's tax calculator is a free tool included with PayPal Payments Standard; it doesn't work with any of the API based products. You will need to calculate tax and pass it to PayPal in the API call.
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.
I am getting an error while doing express checkout for australian currency in PayPal. (The currencies of the shopping cart amounts must be the same) My code works fine with US dollars.
I set the currency code "AUD" correctly in both setexpresscheckout and doexpresscheckout process, but I am still getting an error.
What can I do to solve this?
You're obviously not sending the same currency in both SetExpressCheckout and DoExpressCheckoutPayment.
USD is the 'main' currency. This means that if no currency is specified, it falls back on USD by default. Which is why if you don't specify anything, it works properly.
Review (or post) your code for both SetExpressCheckout and DoExpressCheckoutPayment, as I'm sure you're not properly specifying CURRENCYCODE for either of the API calls.
I get same error code in soap message (10418) and get usefull description (The currencies of the shopping cart amounts must be the same.) in same soap message. I call setExpressCheckout with EUR currency, but I adjusted in my test account US country. My mistake occured this problem.
So it is always usefull check test/normal account adjustment!
I had this error and it was because the PaymentDetailType was not completed correctly.
Make sure both ItemTotal and OrderTotal have a BasicAmountType entered.