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
Related
Is there way to add options so user can select payment method (by paypal or credit card).
I searched for an example but I didn't find anything suitable.
As an alternative, is there an option to select the purchase method, before the popup window opens?
Once viewing the cart in paypal, the user can select how to pay.
If they have a paypal account and sign in, then to the right of "payment" is "change." Click that "change" link and it brings up windows where you can pay by charge card or bank account instead of with paypal money.
If they don't have a paypal account or don't sign in, they can use the link on the bottom of the right side that says "pay with debit or credit card."
I've tested and tried both ways (for our group's website). Hope that helps!
In my PayPal express checkout there's no way for customer to pay whithout PayPal account.
I've seen this post:
PayPal: express checkout pay without account
I've added &SOLUTIONTYPE=Sole&LANDINGPAGE=Billing to the expressChechout call, which is fine but it just opens the tab "New Customer".
Also PayPal Account Optional is On.
I have a PayPal Buisness account.
Is there a solution to this?
Thanks
Even though you pass SOLUTIONTYPE=Sole, LANDINGPAGE=Billing and USERSELECTEDFUNDINGSOURCE=CreditCard in SetExpressCheckout API call, some of your customers will still be forced to open a PayPal account in order to pay with a credit card and they will see the "New Customer" tab.
This is based on customer's country of origin, so you can't do anything about that. In order to pay with a credit card you will need to select a country. When you change the country in the payment form you'll see that some people can just pay with a credit card without a PayPal account, and some will see the "New Customer" tab and being forced to open a PayPal account.
There's a new parameter you need to include to handle this better. Make sure the API version you're setting is 109.0 or higher, and then add USERSELECTEDFUNDINGSOURCE=CreditCard
I'm trying to use PP Express Checkout Flow on my website to sell items through PayPal and I use this wizard, but I have some doubts around the process itself. I'll explain what I did and then ask for doubts.
Pick "Express Checkout PayPal"
Setup parameters by setting: PHP as language, return_url as Return URL, cancel_url as Cancel URL and leave the rest as they are
Then in "Step 2. Add PayPal to your shopping cart page" the wizard generates two files "expresscheckout.php" and "paypalfunctions.php" I did what they said there about download files and setup the rest like API Username and API Password among others
Review the code in "Step 3. Add PayPal to your billing page (payment option)" and download the code to integrate later in my application
Review the code in "Step 4. Order Review - get shipping address from PayPal" and download the code to integrate later in my application
Review the code in "Step 5. Order Confirmation - confirm payment from PayPal" and download the code to integrate later in my application
Now in expresscheckout.php they call the method CallShortcutExpressCheckout() which call inside SetExpressCheckout. With just that piece of code and without doing anything with code from point 4, 5 and 6 step the application redirects to PayPal and aparently did something in Sandbox but when I call the method GetExpressCheckoutDetails() I get PaymentActionNotInitiated in CHECKOUTSTATUS so transaction wasn't made. Then,
What did I miss in the process?
Should I add a billing step, an order review and an order confirmation step to my payment flow?
Why does SetExpressCheckout guide me through PayPal directly and not through the wizard?
This page has a diagram that may help you visualize how the flow was intended to work: https://developer.paypal.com/docs/classic/express-checkout/gs_expresscheckout/ it illustrates 3 API calls, the SetExpressCheckout is called to set up the transaction and define the URL to which the customer is returned after the customer authorizes payment. The GetExpressCheckoutDetails call to get customer shipping info so you can calculate tax and shipping information to display to customer for final approval. Then, DoExpressCheckoutPayment is called to complete the transaction.
Basically, after the setexprescheckout you need to do DoExpressCheckout in order to complete the payment.
I have setup express checkout on a php custom site for payments. Basically it shows me the classic screen of paypal with the order summary and the "choose a way to pay" options.
How do I detect which one the user has clicked on? Paypal option or "pay with a credit card" option, so that I would either do a DoExpressCheckout or a DoDirectPayment NVP API call?
I've been using the code from here (Saraan's site) to use the token for paypal.
If you are using Express Checkout, regardless if the buyer selects to log in with their PayPal account and make the payment, or select the guest checkout and pay with a credit card on PayPal pages you would still use the DoExpressCheckoutPayment API to complete the payment. You would not need to do the DoDirectPayment API call. This call would be used if you were setting up a payment page directly on your site, and did not want the buyer to leave your site to enter in their credit card information.
I am using paypal payment system for users subscription on monthly basis. All the things and flow working perfect. I need to know when user click on button and navigate to paypal site its show only pay with you paypal account or create account (pay with credit card) as shown figure
I didn't see image like credit card option as shown in figure below.
I'm using Digital Goods Example find on this link
https://github.com/thenbrent/paypal-digital-goods
In this example its uses SetExpressCheckout method and recurring user profile.
Its their any option or setting to enable in paypal business profile or paypal api to do that credit card payment option for users.
You have to have a Premier or Business account with PayPal before the option for credit card payment will show up.
If you already have a Premier or Business account, you probably have the relevant setting turned off. Go to Profile -> Selling Preferences -> Website Payment Preferences and look for "PayPal Account Optional." Make sure that box is checked.
If you can't find the box, click through lots of links for a while. PayPal enjoys rearranging their website a lot.
P.S.: If you are using Sandbox mode, it won't show up. You have to be using the real Express Checkout.
It works fine if you add these parameters when you call setExpressCheckout method:
SOLUTIONTYPE ="Sole"
Note: PayPal Account Optional should ON at sellers account.