Paypal Payment Process page has to be modified

THABREZ
Contributor
Contributor

The current payment functionality of my client makes the customers confused when they try to purchase more than one item. Current functionality is that when a customer clicks on Buy Now button, it will be redirected to new Paypal page where the customer allows to place an order for that product. If a customer wants to add another product for this transaction, then the customer has to come back to my clients webpage again and has to click on Buy Now button for different product and it will redirects to Paypal page where the payment will be processed. For purchasing multiple products, the customer has to come back to my clients website multiple times and this is much more confusing. Now my client wants to have a functionality where the customer can select as many as products by staying in the my clients website and the redirection to payment page should be done only upon clicking on the checkout button.  Its like a cart checkout. All I can say is that instead of Buy Now button now it requires Add to Cart button corresponding to each product which adds the corresponding product to cart and a final checkout button which redirects the customer to Paypal page. Below is the current code snippet for 4 individual products.

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="156221">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="">

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="156406">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="">

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="156280">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="">

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="156302">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="">


Upon form submission its adding only one product to Paypal page for processing.  I need a code for form submission in order to process multiple products. 

Login to Me Too
1 REPLY 1

Kavyar
Moderator
Moderator

Good day @THABREZ,

 

Thank you for posting to the PayPal community.

 

I believe you are referring to PayPal Website Payments Standard (WPS) is a legacy integration.

 

I would suggest using the "Add to cart" button to add multiple products. 

 

To assist you further, I have included a detailed guide link below. This guide will provide you with step-by-step instructions on how to use the "Add to Cart" button effectively.

 

https://developer.paypal.com/api/nvp-soap/paypal-payments-standard/integration-guide/html-example-ca...

 

Important : Yes, we recommend merchants to integrate our latest PayPal Checkout (Smart button) product.

 

To ensure a seamless transition, I suggest using the following URL:  https://developer.paypal.com/integration-builder/ to generate the button code required for your website. This will help you take advantage of the advanced features and improved functionality offered by  PayPal Checkout (Smart button).

 

Additionally, before you begin coding, it is essential to familiarize yourself with some key points. To gain a better understanding of these points, I urge you to refer to the following link:

 

https://developer.paypal.com/docs/checkout/standard/integrate/#link-knowbeforeyoucode.

 

For additional information, please visit the following links.

 

https://developer.paypal.com/docs/checkout/

 

https://developer.paypal.com/demo/checkout/#/pattern/server 

 

If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.