PayPal custom form for payment instead of default popup window - php

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.

Related

Customize Paypal checkout page

using PHP REST API SDK, is there a way to customize the first PayPal page that appears (login page) when doing a Payment. Specifically, we would like to move "Pay with Debit or Credit Card" above and make larger than "Pay with Paypal".
It is not possible to edit any portion of the hosted secure checkout page of PayPal standard or PayPal Express Checkout. The only change you 'can' make is add a logo or header image that populates and replaces the business name or email to the account.
Hope this helps

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.

Open paypal options based on specific link

When i click on Paypal Express Checkout it sends me to paypal website where i get 2 options
1)Pay with my Paypal Account
2)Pay with a Debit or Credit Card or Bill me Later
Now the problem is I want to add 2 Options in my checkout
1) Pay with paypal
2)Pay with Credit or Debit Card
When User clicks on Pay with paypal then first Paypal options need to open. Like this
And When they clicks on 2nd Option then second option needs to be opened. Like this
Can Anyone tell me how can i achieve this.
Any help will be appreciated.
You can change the landing page at the moment you execute the SetExpressCheckout API method.
If you look at the API reference for the LANDINGPAGE field :
Type of PayPal page to display. It is one of the following values:
Billing – Non-PayPal account
Login – PayPal account login
Source: https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
So you have to create 2 options in you checkout, the first option (Pay with paypal) executes SetExpressCheckout with LANDINGPAGE=Login and the second option has to call the same method but with LANDINGPAGE=Billing

Paypal subscription button

Background
I'm building a website where I need to use some sort of recurring billing payment method. My client does not have Paypal's Website Payments Pro so he decided to use a simple Subscribe button.
Problem
This is all nice and easy to use but how would I get a notification from Paypal when such a payment has been made? I had some experience with Paypal before and there was a field return_url that would be accessed by Paypal to notify the website but checking the variables on their site this field does not exist anymore or perhaps not available with this type of button.
when you create subscribe button that time you will find that option(in step 3) , so according your need you can set url and get ipn variable
Step 3: Customize advanced features (optional)
Take customers to this URL when they cancel their checkout
http://yourwebsite/complete_registration.php?action=cancel&sts=0
Take customers to this URL when they finish checkout
http://yourwebsite/complete_registration.php
Advanced variables
notify_url=http://yourwebsite/complete_registration.php
i hope it help you

Categories