php paypal adaptive chained payment implementation without leaving my website - php

I am tying to use PayPal adaptive chained payment API.
But, my problem is that, i don't want to leave my website for payment.
I want a kind of do direct payment using adaptive chain payment method.
I found api which do this by taking users to PayPal site,
but could not find the one which i want..
Any help would be welcomed..
Can Someone help?
My payment scenario is like this::
users will pay to my website i.e me, then after 3 days my application will redirect this payment to two of my clients parallely..
user -> me $100.
after 3 days.
me->my client1 = $70.
me->my client2 = $30.
this all process should be maintained on MY SITE ONLY.

This is not possible because of PayPal's security concerns and fraud protection. Users have to be redirected to PayPal's site in order to complete their transaction.

Related

Using paypal on custom website and accept credit / debit Card

I have an issue right now that is killing me, I have implemented several payment options but never used paypal, I don't know why is it so complicated.
The website already exists and wasn't developed by myself.
I don't know the ammount of the order it is dynamic, so the "create payment buttons" on the paypal website doesn't work for me, at this point i developed a solution using
PayPal developers
But it turns out that i only have the option to pay with a PayPal account or register a PayPal account, I do not want to force customers to do this, it has no sense. is there any relatively easy solution out there using the same PayPal API?
EDIT
The whole site code is in PHP so i need the solution in this language
As you have mentioned that you are aware of one payment method i.e. Express Checkout ( in which user needs to have a valid Paypal account) so the other method which I think you need is the Direct Payment (i.e. a user can pay with credit cards directly without any Paypal account) API.
For this direct payment api you need to enable Website Payment Pro WPP , here you can get info about WPP.

How can I make an automatic PayPal buy button?

I want my PHP web application to have the ability to save the user's PayPal details in their user account.
When they go to purchase items, rather than going through the standard PayPal form, it will automatically grab the user's PayPal details from their user account, and make the payment directly from my website. There is definitely a way to do this, as I have seen this feature on sites such as Freelancer.com
Thanks for the help! :)
No, you don't need Payments Pro for that. That would only be if you want to do it with direct credit cards. What you're after in general is called Reference Transactions, and when done with PayPal Express Checkout it uses Billing Agreements.
You'll use Express Checkout and/or Payments Pro (optional) to process an original authorization or sale transaction. Then, you can send that ID you get back in that original transaction along with a new amount in the DoReferenceTransaction API and that new amount will be instantly processed without any redirection or further authorization required.

Confirm Express Checkout on PayPal via PHP

This question asked before but didn't got any answer.Maybe things have been changed.
When you click the Express Checkout PayPal button on any webshop, it redirects you to a specific paypal login link, for paying the order.
I have been searching high and low for 3 weeks for a simple paypal php curl script that logs you in from this step, and confirms the payment, but have not been able to find anything.
I found out it is not possible to use the API for this, so its gotta be done by CURL.
I'm asking for this because I run a dropshipping website, and would like to automate certain steps, like placing and paying orders. A working code for this would help not just me, but all looking to automate buying in some form.
Thank's!
You can't log the buyer into PayPal when you redirect them to the site. The buyer has to enter their own account credentials themselves.
If you wanted to bill a buyer without requiring they log into PayPal each time you would need to use billing agreements (reference transactions) through Express Checkout. If you set up a billing agreement with a buyer you can charge a previously successful sale to bill them again for a different amount.
You cannot do what you want with Express Checkout, especially since nobody will ever enter the paypal details on your website (that is the entire point of paypal).
You can use either preapproved payments (buyers preappove payments being taken out of their account up to a certain ceiling), or reference transactions (you reference a new transaction to an older transaction. PayPal will then use the billing details of this earlier transaction to bill the user).
Preapproved payments is part of Adaptive Payments. Documentation is at https://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/integration-guide/APIntro/
You can find more details about Reference Transactions at https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECReferenceTxns
Note: Reference Transactions needs to be enabled on your account. This API call is not open to everyone due to the potential for abuse, so you may want to look into whether you're eligible for it before you start working on a full integation with it.
You can find more info here :https://www.paypal-community.com/t5/Merchant-services-Archive/Does-Paypal-have-a-quot-Token-Payments-quot-concept/td-p/325794
Also google "token payments" as that is what you need and most payment gateways usually support them.

Integrating Paypal chained payment and direct payment?

I want to Use the Paypal API for chained payment (adaptive payment), but i wan't that the user will not get out from my site, so I need to use the DoDirectPayment also...
Is it possible to integrate them both?
I couldn't found the answer for this question...
Thanks.
They both are part of two different API suites from PayPal. The chained payment is from Adaptive Payments API and DoDirectPayment is from PayPal Payments Pro (Direct edition). So make sure you sign up for them as required.
As Prash mentioned, for chained payments w/ PayPal accounts you must redirect to PayPal. But instead of using full browser redirect - you can use the Embedded Payments experience that uses iframe/mini-browser window that provides a more contextual experience to your users.
The user must leave your site in order to login to PayPal, however they are redirected back to your site afterwards where you can process the payment.

Pay online service

I have a database where you can select articles etc, users have an account, it's all in mysql and php (i guess you don't need that code).
What i was wondering was how to write a script that allows users to pay online for the articles they selected?
It doesn't need to be any code, just ideas / hints / tips / ... (that are doable in PHP or something similar)
Thanks in advance!!
-Samuel
You have to do that through a service that collects money, such as paypal or a bank.
You make an account there, and they will provide the necessary files and documentation to do that.
Usually it will mean
when the user wants to pay, you redirect them to a specific page in the payment site
you host an IPN (Instant Payment Notification) file where that site will contact you when he receives a payment
I've done some paypal coding before and it is easy to set up, suggest that you should search for payment gateway that, i've work with ipay88.com before its one of payment gateway at my place.
Usually if you setup the paypal for the business transaction you will need to register as merchant account and they will charge you per transaction, same goes with payment gateway.
It is a very broad question. But basically you need to integrate some payment module, such as paypal. Look at their website, where there are tutorials on how to get it working with php.

Categories