Paypal send personal details to checkout page - php

Anybody know how to send values like Name, email, city, country, phone etc to populate the new account form on the paypal checkout page? I am taking billing and shipping address on my site only. just want to send the same to the checkout page so that the user won't have to fill it up again on that page.
I am using the paypal ipn class from http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html
Please help!

Looks like you need to implement the Express Checkout documentation located here.
In an Express Checkout flow, a buyer still checks out at thebeginning of the flow and pays on your site; however, the buyerdoes not reenter shipping, billing, or payment information, becauseit is already available from PayPal. This simplifies and expeditesthe checkout process. The buyer can then proceed to review the orderon your site. You can include other necessary checkout steps. Youcan also up-sell to the buyer on your Review Order page.
(Others have noted the teribble formatting of the paypal documentation in its current state, namely the lack of spaces. Hopefully they'll get that sorted out soon.)
You can use GetExpressCheckout to get a customer's shipping information so that you can store it. As stated in the documentation GetExpressCheckout "obtains information about the buyer fromPayPal, including shipping information."

Related

Is there a way to disable paypal Pay Later options on checkout using REST API?

I'm using the paypal REST API using PHP as backend. And the challenge I have is the pay in 4 and pay monthly options while I want instant full payment for less than 100$.
Is there a way to disable it while calling the API to set the limit higher for pay later?
Image showing Paypal Pay later options
I am selling digital products (Airtime and internet bundles) so I want instant payment. Your help is appreciated.
Thank you.
Within the PayPal.com checkout, all the funding sources result in the receiver receiving a single payment. All the receiving account will know is that it received a successful PayPal payment. All billing details and information about the funding source used -- be it a card, bank, Pay Later, or any other local funding source -- are not visible to the receiving account, and kept private by design.
Using the JS SDK, it is possible to enable and control the display of the Pay Later button as well as other payment method buttons/messaging on your own site. However, this only affects what is displayed on your own site. It does not change what may or may not be available in the PayPal.com checkout page depending on the country and location of the payer, currency, amount, and intent of the transaction, etc.

PayPal On-site Integration W/PayPal Providing Shipping Data

We're currently using PayPal IPN. We're looking for a PayPal implementation that has this flow:
1.) User logs in at the cart.
2.) We can get their shipping information and email, send them to our payments/shipping page (for selecting shipping option and other order meta data).
3.) User clicks, place order, to place an order and we can tell they paid.
4.) Confirmation page.
5.) All of this keeps them on our site, no client side redirects to PayPal.
PayPal Express seems to try and do it all for you, but this doesn't allow us the level of control we need for step #2. Is there an implementation option that I can use for this flow?
Not exactly what you are looking for but still check this link once:
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/cart_upload/

Is it possible to make a donation button in my website with choices? Whether Paypal or Credit Card?

I already created a donation button and tested it in sandbox and it worked, what I want to do is before the donor clicks the donate button, I want them to choose first whether Credit Card or PayPal Account, if they choose credit card, they will fill the form and redirect to PayPal. I don't want them to choose credit card at PayPal site because it is so small that it can barely seen.
It is not possible to open up the credit card field on the paypal checkout page using website Payments Standard buttons(like donations,buy now etc)But,you can automatically fill the address related fields and pass it to checkout page.
You can display the credit card tab only in express checkout using LANDINGPAGE=Billing
Let me give you an idea.
Your Question:
If they choose credit card, they will fill the form and redirect to PayPal.
Answer:
This can be done, however you will invoke SOLUTIONTYPE=SOLE and LANDINGPAGE=BILLING (this will work using PayPal buttons; I have tested this first hand)
Answer:
Technically it could be done, however it is an unsecured method of using a customers credit and sort of defeats the purpose of using PayPal as a payment method; invalidates security. If you post credit card data from your; let's say secure form, it is still vulnerable to a post sniff where hackers can steal the cc info vs. having the customer manually entering their credit card info on a hosted secure paypal page.
Note
Maybe use PayPal advanced which is $5 a month; use a secure hosted Iframe, where a customer can pay with a credit card on site with no redirect. Like: http://www.ggsalsa.com/salsa-menu.html#!/~/checkoutPD; put fake email and checkout with credit card to see.

how do i link paypal account with online store using php

I am not sure what this is called but here is what i am looking to do.
I am trying to make a php script that will create a link between our store account and paypal buyer, so that when they click our buy button it will process the payment without any future confirmations or user actions.
I have tried the paypal sdks and integration wizard no luck, Does anyone know of a working example of what i am trying to do?
Billing agreement(also called Reference Transactions) allows customer to agree the payment once on your website or app, then you call an API with the billing agreement ID to tell PayPal to charge the customer. Please see document here . You will need to contact PayPal to enable you to use Billing agreement, it's not easy to get approval:(
Integrating Paypal buttons are pretty straightforward.
Go to your merchant account.
Go to your Create Paypal Button page.
Choose whatever the button types you want. Configure it with Price etc.
Now just copy and paste the code generated.
It just works.
P.S
There is an option in your merchant account page to set the returning address from Paypal. You can set a returning page and catch all the transaction details via HTTP Post method when it is called by Paypal.
There is this Sandbox account type in Paypal which you can do a lot of playing with.

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.

Categories