How to send multiple payments in single click using paypal api? - api

For e.g:- 100% payment will go to admin’s account. A automatic transaction will be performed where admin will see total revenue next to which a button will be located. Clicking on which, will perform the automatic transaction online and after the deduction of admin’s commission rest of the amount will be transferred to other user's(Can be 2 or 3 users) account.

You might look for "Chained Payments" https://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/integration-guide/APIntro/

Related

PayPal Sandbox transactions are not showing for seller

I've used my live PayPal account to login to developer.paypal.com where I created 2 new accounts buyer# (personal) and seller# (business). I've implemented a PayPal plugin for a shop (CubeCart + PayPal Standard Payment Gateway plugin https://www.cubecart.com/extensions/payment-gateways/paypal-standard). When I complete an order (sandbox testing) I sign using buyer# email and password and complete the order. I can then click to view account and it shows "payment to", "unclaimed" and the amount I've paid. When I logout of this account and login as my buyer#, I see no transactions. If I log back into developer.paypal.com and go to transactions under "Sandbox" section and select any of the email addresses I see the same statement for all of them "You don't have any transactions".
If I login to sandbox.paypal.com using james-facilitator# account (business) there are no transactions here either.
If I login to sanbox.paypal.com using james-buyer# account (personal) there is only the one initial transaction here for the initial 9,999 funds
I've obviously missed something but I can't think what, I'm not sure how a sandbox account knows who it's seller should be but I've checked both sandbox seller accounts. I find it strange that the buyer account I used has registered the transaction but it seems like it's orphaned as there isn't any other record of it any where else including the developer.paypal.com sandbox transaction. I've tried this several times to see if I could get it working and I've also allowed for 24 hours just in case there was a delay somewhere.
I just want to be able to test transactions before going live.
Any help/advice?
Much appreciated :)
Cheers
James
Solved - silly really now I know but it was simply the email address I used to test the API. I used my main live account and I should have used the fake email address in my API call. Since my live controls the test accounts I assumed that this should have been used.

Need to delay credits after a debit in Balanced Payments

Background: The website is designed for property managers and tenants to do the following -
1. Property Manager registers for the site
2. Property Manager creates their Tenant users
3. Property Manager and Tenant verify their own bank accounts using Balanced Payments from our site
4. Once verified, the Tenant logs in, enters an amount to pay to the Property Manager and submits payment
5. Amount entered by Tenant is debited from their account using ACH and placed in Marketplace
6. Marketplace automatically credits rent amount to Property Manager (minus a $7.50 transaction fee).
The problem I have is when the Tenant pays, the debit is created in the log, but the credit has a 409 error "insufficient marketplace funds"; does anyone know how to remedy this error? Should I/Can I put a delay on the issuing of the credit until the debit is actually received in the Marketplace? I have several screenshots if it would help..
Thank you in advance for the assistance,
Jake
Founder, RentEater.com
You're using ACH, or bank account, debits here. Due to the asynchronous nature of the ACH network, these debits don't succeed immediately, like credit card debits do. They are batch-settled once per day, and take around 3 business days to succeed. This page has some more information on this process:
https://www.balancedpayments.com/ach-debits
One way to work around this is to keep a reserve of funds in your marketplace's escrow account, so that you can pay out credits immediately after creating a debit. The credit will come from this reserve, which will be replenished when the debit succeeds.

variable monthly charges to users

I have a situation where I am to bill the site users monthly. But the invoice amount that is raised depends on the the leads that our site generates for his business. For example if the user gets 5 leads from my site and I charge him $10 per lead, at the end of month he will be charged $50. similarly leads might vary each month so will the amount.
Now I cant store his cc/ paypal credentials on my site for security reasons nor can I pre bill him or ask him to take credits and then use it. Please let me know the way to handle this situation. How can I handle this using paypal?
There are a few different ways to handle this, but I would recommend Preapproved Payments, which are part of the Adaptive Payments API.
With this method your users would create a profile with you (using the Preapproval API) when they first create their account on your site. That will give you a preapproval key that you can store with your user account. Then in the future when you need to bill them you can use the Pay API with the preapproval key to process funds immediately without further approval.
If you're working with PHP my class library for PayPal will make these calls very simple for you. You would just use the Preapproval.php template to setup the profiles for people, and then use PayWithOptions.php to process payments using the preapproval key(s) accordingly.
If you end up using it and need more help you can contact me directly for support.

Paypal express checkout payed more (issue)

Hy guys.
I just implemented the paypal checkout express into my website.
All went good until i had test it live.(without sandbox becouse they didn't send me the confirmation email and i cannot get the api credentials)
- i used my own paypal account.
My question is:
Step 1) call "SetExpressCheckout" with required data.
Step 2) get the tocken and redirect the user to pay 0.01 USD. (all good, user saw $0.01)
Step 3) get the buyer details ..."GetExpressCheckoutDetails" and save them (all good )
here is the big problem:
Step 4) call api: "DoExpressCheckoutPayment" with TOKEN, PAYER_ID ...etc also PAYMENT TOTAL AMOUNT
In this step i added the TOTAL AMOUNT by mistake as $500 - hardcoded , after finalizing the order the $500 were transfered to my account from buyers account instead of $0.01.
How this is possible ??? Why paypal doesn't check the total amount from setExpressCheckout with the total amount from DoExpressCheckoutPayment, becouse the tocken is the same one.
In my opinion this is a major security issue.
That is by design. SetExpressCheckout sets up the payment, but your application won't know (in best practice scenarios) the shipping address of the buyer until after you've called GetExpressCheckoutDetails. At that point you could calculate shipping and sales tax accordingly and add it to the order, display a final review page, and then call DoExpressCheckoutPayment with the final order amount to be charged.
So, yeah, whatever you pass in DECP is what's going to get charged, so you want to make sure that's correct.
As for testing, you just need to create an account at http://developer.paypal.com and then create sandbox accounts within that. You can get the API credentials for sandbox accounts by clicking on the profile of each sandbox account. No need to wait on any confirmation emails or anything. Not sure what you're referring to there, but I definitely recommend testing on the sandbox.

Authorize net ARB increase subscription amount

I am using authorize net ARB subscription api in my application to charge some monthly amount from my users based on the product they select. If a user decides to upgrade his product, the subscription amount will also increase. I want to implement this without having to ask the user for his credit card details again. Can I increase the amount of the ARB subscription? If yes, is there any limit on the increased amount ?(I know that in PayPal, you can increase the subscription amount with an upper limit of 25%)
If you do not have the user's card information you cannot change the amount in ARB. If not asking the user for their card information again is important to you then you should use the CIM API which allows you to store credit card information through Authorize.Net and then make payments using that stored information. The only catch is you would need to build your own recurring billing engine as CIM does not handle that.