Can the PayPal JavaScript SDK show a "Pay with Venmo" button? - paypal

My ecommerce site uses the PayPal JavaScript SDK to accept payments. The Payment Methods section of the SDK documentation lists Venmo as a payment method. But the paypal.Buttons.render method only makes a PayPal button. When I click the button, I don't see an option to pay with Venmo. How do I configure the PayPal JavaScript SDK to process a Venmo payment?

Assuming you are rendering multiple buttons (the default layout:vertical, or layout:horizontal for two), a blue Venmo button will show to eligible mobile users with a US IP address who have Venmo installed on their device.
This might change in the future so any mobile user with a US IP sees Venmo. In any case, no configuration is necessary by you. All you need to do is render multiple buttons (the default) and not disable Venmo as a funding method (also default)

Related

WHMCS & PayPal - How to disable the create account from express checkout?

I am using PayPal with WHMCS. During the purchase, PayPal express checkout popup shows the create PayPal account form also below the credit card information form, and this [Create your PayPal account] form is required even after doing these changes as per the PayPal documentation.
On the other side, the WHMCS also doesn't have any option to disable/hide the create PayPal account form.
Due to this issue, my clients are getting annoyed and leaving my site without completing the purchase. How to disable the create account from express checkout?
That is the normal flow for new PayPal buyers. An option to pay without creating an account might sometimes be available, depending on many factors including the buyer's location, but is never guaranteed.
For the option of a black button to pay with a Debit or Credit Card to always be available, integrate with current PayPal Checkout buttons, which for a UAE buyer will look like this:
You can test the demo here and append &buyer-country=AE to the SDK script line (only for sandbox mode)
I know this is an old thread but incase anyone else is trying to solve it, I've just used simple CSS to hide it - using the default Twenty One theme I just added this to my custom.css file.
.express-checkout-buttons {
display:none;
}
And it hides. I know its not the best option but it works for me as I don't need to my clients checking out via this option.

Why PayPal Payment page shows different?

Please any one explain. why paypal payment page differ. See screenshot
I want button to be checkout as guest. How to change that instead of pay with debit or credit button
URL LOOKS: https://www.paypal.com/webapps/hermes?token=
URL LOOKS: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
I tried both PayPal standard and express. but button not change to CHECKOUT AS GUEST
Its depend upon the payment mode you selected from different vendors and depends upon the country currency you are paying

Choosing which PayPal checkout form to use

We send people to PayPal to either donate or subscribe to our site.
We have guest access enabled, when you start a fresh session and navigate to our donate page and click the button, you get a nice 'guest' checkout page.
But, if you log in to PayPal and then logout again, you don't get this form on your next donate, you get the 'login' form.
I'd like to be able to force all users to the Guest form if possible. I know that there are a bunch of features not available to us lowly 'donate button' users (as opposed to Express Checkout and the like) but surely I could pass a param that forced the Guest form?
Answering my own question here.
Can you force PayPal Payments Standard API to show credit card fields first?
Is it possible to have PayPal standard expand the 'Guest Payments' tab by default?
Its all based on the PayPal cookie and there's nothing that allows you to override that.
EDIT This has been confirmed by PayPal support.
If there is a cookie, or if you provide an email like WooCommerce does by default PayPal will assume you have an account. See my answer in Paypal Payment Standard default enter card details

Creating paypal buttons on the fly

I have a webapp, where users sell printing services, I want to allow my users to add a pay now buttons to their pages so customers can pay for their services.
My users specify their paypal email address etc in the settings and set up their services with a price etc.
What API should I use to create the pay now buttons on the fly ?
Thanks
You don't need an API for creating "pay now" buttons. You can either create the button from within your customer's Paypal accounts or dynamically generate with HTML (see HTML Variables for Paypal Payments standard).
One advantage of creating the buttons from your/their Paypal account is that you can get an additional layer of security (support for encrypting the form or using a hosted button id so user cannot change the amount submitted to Paypal).
However, if you deal with hundreds of different buttons then it makes more sense to dynamically generate the buttons and just perform additional validation when Paypal sends back the confirmation (either through PDT or IPN) before shipping your items.
You could use PayPal's JavaScriptButtons API and create your buttons dynamically with:
paypal.button.create(business, data, config, parentNode)
There is an button manager API that let's you create secure buttons - here is more info: https://www.x.com/developers/paypal/products/button-manager
PayPal offers different buttons based on your requirement.
Follow these steps to generate PayPal button:
Login to your PayPal Account
Click on Tools --> All Tools
Click on PayPal buttons
Now you are given few button options --> Buy Now is one if them.
Follow those three steps and then copy the code at the end of 3 steps and paste it in the page where you want this button to appear.
You are good to take Payments!

Can I show the momentary payment confirmation with smart buttons?

Can I show the Momentary payment confirmation which described here after payment that has been done using the Smart Payment Buttons Integration?
I have enabled the auto-return option and also added the return URL to the sandbox app but it is still not working.
No, you can't. That page is describing the old behavior that only applies when you do a full page redirect away from your site to PayPal.
If you stay on your site and display the smart experience, you are expected to display your own confirmation once the successful capture triggers within your SPB javascript.