PayPal add to cart custom shipping address - php

I've got a 2 item gift shop where people can send gifts to other people and pay via paypal. My issue is that its annoying for customers to have to change their address on the paypal checkout screen.
Is there a way I could make it so that they enter their address on the same page as the checkout button and that is then sent to the paypal page and autofills the address stuff. I'm currently only using HTML but could use PHP if needed
Thanks.

If you've already let your useres fill in an address on your website, why would you create a paypal button where they again have to fill in an address? Simply fill out the address in your paypal form automatically using these submit HTML variables:
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#id08A6HI0J0VU
And set 'address_override' to 1 as stated on:
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

Related

PayPal custom form for payment instead of default popup window

I'm new to PayPal
I would like to implement a custom form to accept credit/debit card details and so users can complete the payment process (Instead of using the PayPal popup window). Is it possible?
Custom form to enter credit/debit card details will be like this,
Custom form to recieve card details
if it is not possible, can I insert the billing address automatically from my custom form instead of asking it in the PayPal popup window...
paypal default popup window
Thanks in advance.
A regular standard payments integration will give the option to either Pay with PayPal in a popup, or pay with a Debit or Credit Card on your site, using the black button. You can see a code demo here. (Venmo is there for demo purposes and only shown if you &enable-funding=venmo on the SDK line, but in any case any extra button you don't want can be disabled)
As far as required billing information, if the transaction is set up to not collect shipping information (orders create request body -> application_context -> shipping_preference -> NO_SHIPPING) , then in that case only a zip code may be required, but this can depend on the country of the payer.

Assoiciate paypal payments with the payer

So in my website I have in-game features which you can buy
I have a miniature store made and paypal buy now buttons included
What is the best and most secure way of automatically giving users there in-game bonus. When they have paid through paypal you have an option to put in a link when the payment is successful and i could have a form so when they are on that link it adds there bonuses but it also means anyone could just go to that link and get the bonuses for free.
A couple of options (this sounds like Payments Basic)
Have them enter their PayPal account email address into their game account profile. When you get your IPN you match those up and issue the bonus
Add the custom field to your HTML buttons. Associate that value to their user profile in your database. When you get your IPN, match the custom field up and issue the bonus

Prefilling login to paypal system

I`m using PayPal standard and buynow button. Exists any possibility how to pre-fill login e-mail into PayPal system after button submit? For example any hidden field, like "bussines"? This is helpfull in case, if i know users e-mail using as login to paypal.
You can use a hidden field called "email", but that's only used if the customer doesn't already have a PayPal account. Otherwise, the email field will be prefilled with the customer's login info.
https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_prepopulate_outside

Receive form only if Paypal payment is complete

I'm looking for a way to receive a form result by email only if the payment has been completed on Paypal.
I have a form next to my shopping cart.
I want people to fill the form, then they can browse in the shopping cart.
Once they click on "Checkout" in the shopping cart, they are redirected on Paypal.
The form I talked before is still on hold...not sent yet.
When the guy fills his credit card information, click Proceed on Paypal, and THEN...
When the payment is complete, the form he filled on my website will be submited.
But if he decide to close the paypal window and stop shopping, I won't receive it.
I need your help guys/girls.
I'm not sure what language I need to make this work.
I'm guessing PHP and Javascript.
Thanks a lot,
This function is very important for us.
Check out the IPN (Instant Payment Notification).
https://www.paypal.com/ipn/
It will send a message to your server after a payment has been made, sounds like what you are looking for. You can write the listener in PHP and they provide example code.

Pre Populating Paypal amount through an email link

I am creating a PHP form which takes the customer's information and the amount they want to spend and when the submit button is hit the details are sent to my email address.
This is where I have the problem. I want to then send them a link to the PayPal account to complete the purchase. However I want the amount to be pre-populated based on the amount they selected from the forum.
Simply, can this be done?
You need to change the action parameter of the form from https://www.paypal.com/cgi-bin/webscr to www.someurl.com/page-that-you-can-edit.php
You then need to code your script to email you whatever information you want, and then silently redirect the buyer to PayPal (you do this by setting the header) with the appropriate paypal variables: cmd=_donations&business=yourpaypal#email.com&amount=xx.xx&item_name=your items name&[any other website payment standard variables ]

Categories