Running balance amount from Paypal API - api

I would like to get the running balance of my PayPal account after each and every transaction.
I'm getting the same from the portal in a nice report format under "balance" column.
But I get no running balance when I'm using "TransactionSearch" and "GetTransactionDetails".
There is an API name "GetBalance", but it gives me the total balance which is what I don't required.
It would be really appreciated if you please help me getting this running balance after each and every transaction using the above two APIs.
Thanks much,
Arnab

The closest API to what you are looking for would be the GetBalance API. This should be the same balance that you see available in your PayPal account.

Related

PayPal GetBalance in IPN Script

At the end of my PayPal IPN Script I'm trying to get my new balance with the GetBalance API.
Unfortunately sometimes the balance I receive is correct, sometimes it's the balance without the latest value.
I couldn't find any correlation neither with txn_type nor with payer_status or payment status.
Is there anything I'm missing?
Thanks and best regards
Daniel

Paypal Pro API for monthly payment with variable amount each month

I need suggestion for paypal pro API which allow me to pass variable amount each month. For some months,it can be zero too.
I tried with UpdateRecurringPaymentsProfile but it gives me error of 11592 (Subscription profiles are not supported for recurring payments).
Please someone help me with easiest solution.
Based on the error you mentioned it sounds like you're using a PayPal Standard Subscription button, not Pro. If that's the case, then as the error says, you cannot update standard subscriptions with the APIs. You would have to use the recurring payments API to create the profile in order to then update it.
That said, you won't be able to do variable amounts with recurring payments profiles. you can only raise them by 10% every 120 days, so that typically doesn't work with what you're trying to do.
Instead, you'll need to use reference transactions. So if you're using Payments Pro that will be real simple. You just pass in the transaction ID of an original authorization or sale transaction along with a new amount you need to charge. PayPal uses the card details on file to process the new amount.
If you're using DoDirectPayment then you'll use DoReferenceTransaction for the future payments. If you're using PayFlow you would use the PayFlow API, of course, and change the parameters to match a reference transaction request.
You can also do the same thing with PayPal Express Checkout, but in that case you'll need to include billing agreement parameters in the SetExpressCheckout request, and then you'd use the billing agreement ID you get back from that in the DoReferenceTransaction request.
In any case you'll need to build your own script to run everyday, pull profiles that need to be charged, and charge them accordingly.

how to retrieve bill pay transactions using yodlee rest api

I using the executeUserSearchRequest to get transactions for bank,credit etc.
But I'm not able to get Bill Pay transactions.
Should I not be using this method to retrieve the lines, or perhaps I'm doing the search wrong. I know the account I'm using does contain lines as I've verified using another application that uses the yodlee api;s.
I using these settings
ContainerType: All
SplitType : ALL_TRANSACTION
transactionSearchRequest.searchFilter.itemAccountId.identifier = 9999999
where 99999 is the itemaccountid
all other values are defaults from the API testing tool
https://developer.yodlee.com/Aggregation_API/Aggregation_Services_Guide/Aggregation_REST_API_Reference/executeUserSearchRequest
You should be able to retrieve transactions for billpay using the same API i.e., executeUserSearchRequest. Please remove itemAccountId.identifier and try to get transactions, it will return transactions for all accounts.
You can then verify is transactions for your billpay account is present or not.
If you want transactions for specific account then you can first call getItemSummariesForSite API to get the account level details for the added account and from there you can use the itemAccountId and pass it on to executeUserSearchRequest API.
If you still face any problem, please share your memSiteAccId over our chat support and we will be able to help you.

Current PayPal Fees in web API?

Does anyone know if there is a publicly available PayPal resource that would allow me to calculate transaction fees in my Magento code?
For example, if someone buys something for $1.00, I'd like to know if $0.15 of that is a PayPal fee.
If there were a resource, like paypal.com/currentfees.xml or something that I could readout in my PHP code, I could that. Does it exist? I know there are different fees for different payment methods (e.g., AMEX) and fees could change at any time -> So it'd be good to have a dynamic way to calculate how much of Magento's order totals are really PayPal fees.
EDIT: To clarify, I'm not interested in charging customers more, just in knowing how much of my price is going to fees. For bookkeeping.
Thanks!
PayPal fees are not the same across accounts or even by transaction; there are different fees for cross-border transactions, PayPal Here transactions, large-merchant discounts, et cetera.
Have a look at https://www.paypal.com/webapps/mpp/paypal-fees for more detail.
So no, unfortunately you can't pull a resource to find the current fee.
However, PayPal does return the fees paid for each transaction in the API response.
For example, if you're integrated with PayPal Express Checkout, the DoExpressCheckoutPayment API (doc) is used to finalize a transaction. This API call returns a 'PAYMENTINFO_0_FEEAMT' parameter which contains the total fee amount paid for the transaction.
Should you wish to retrieve this information after the transaction has been completed; PayPal also offers the GetTransactionDetails API call (doc). This API call also returns 'FEEAMT' as a parameter.
Simply submit the TRANSACTIONID and read out the FEEAMT.
Note: Fees are only calculated on completed transactions. You won't get a FEEAMT back for any order or authorization-ID's (e.g. those starting with O-xxxxxxxx).

subscription payment processing

Looking for some advice on which service to use to implement the following on my site:
I would like to sell 4 levels of subscriptions each to be billed on a monthly basis
The customer should be able to cancel their subscription at any time
The customer should be able to upgrade and downgrade their subscription at any time
I would like to keep the cost down until I have enough subscribers.
I have looked at Paypal but could not figure out how I can do requirements #3. Posting to their community forums yielded no response.
I am also located in Canada which seems to limit the options available to me.
I am currently looking at www.preedly.com and www.chargify.com but they seem to require a merchant account so I'd end up paying 2 service providers.
My site is written in PHP so a PHP-friendly solution is needed.
One last thing, I could not find a way to get Paypal to tell me the new subscription expiry date (following the successful processing of a transation) in order for me to update my customer table and lock out those who have not paid.
You may want to look into gettings a US based merchant account (I used to work for a merchant account provider and we were able to successfully establish merchant account for Canadian businesses. IIRC it required some hoops to be jumped through, though). If you can get a US merchant account you then can use Authorize.Net's Automated Recurring Billg (ARB) API. It allows you to create subscriptions and modify them accordingly (upadting and deleting).