Completed

Update Paypal post to PayPal JavaScript SDK

We need to update our current code for paypal post (old version) to the new PayPal JavaScript SDK that is used within the Paypal smart button ([login to view URL])

Current example that works perfectly including ITN

Update from >>

<form name="PP" id="paypalform" method="POST" target="_blank" action="[login to view URL]">

<input type="hidden" name="item_name" value="Order <?php echo $_SESSION['grSiData']['prod'];?>: <?php echo $_SESSION['grSiData']['total_to_pay'];?>">

<input type="hidden" name="item_number" value="Plus Pack <?php echo $_SESSION['grSiData']['prod_sku'];?> <?php echo $_SESSION['grSiData']['total_to_pay'];?> - 2019">

<input type="hidden" name="solution_type" value="Sole">

<input type="hidden" name="landing_page" value="Billing" />

<input type="hidden" name="no_shipping" value="1">

<input type="hidden" name="first_name" value="<?php echo $_SESSION['grSignupData']['fname'];?>">

<input type="hidden" name="last_name" value="<?php echo $_SESSION['grSignupData']['lname'];?>">

<input type="hidden" name="country" value="US">

<input type="hidden" name="lc" value="en_US">

<input type="hidden" name="custom" value="xx">

<input type="hidden" name="amount" value="<?php echo $_SESSION['grSiData']['total_to_pay'];?>">

<input type="hidden" name="item_name" value="<?php echo $_SESSION['grSi']['prod_name'];?>">

</form>

NEED TO BE UPDATED New updated to PayPal JavaScript SDK as below including all missing field and ITN

<div id="paypal-button-container"></div>

<script src="[login to view URL]<?php echo $_SESSION['grSiData']['currency'];?>" data-sdk-integration-source="button-factory"></script>

<script>

[login to view URL]({

style: {

shape: 'pill',

color: 'white',

layout: 'vertical',

label: 'pay',

},

createOrder: function(data, actions) {

return [login to view URL]({

purchase_units: [{

amount: {

total: '<?php echo $_SESSION['grSiData']['total_to_pay'];?>'

}

}]

});

},

onApprove: function(data, actions) {

return [login to view URL]().then(function(details) {

alert('Transaction completed by ' + details.payer.name.given_name + '!');

});

}

}).render('#paypal-button-container');

</script>

This project is urgent, french or spanish language appreciated , english ok

Skills: PHP, JavaScript, PayPal API, MySQL, Twilio

See more: paypal developer, paypal express checkout javascript example, paypal api, paypal.button.render onclick, paypal.button.render options, paypal api integration, @paypal/checkout-server-sdk, paypal javascript sdk github, vertifying paypal post, paypal post form fields, post paypal website, post paypal aspx page, paypal post product data, paypal post affiliate, paypal post affiliate pro plugin, redirect paypal post, post paypal history website, wordpress paypal post, update sql server paypal, update cart icon paypal

About the Employer:
( 6 reviews ) Lewes, United States

Project ID: #25664266

Awarded to:

gracefulwork

Hi I have recently completed paypal using latest javascript sdk on site [login to view URL] I can make changes to your site for paypal using latest paypal javascript sdk. Thank you.

$30 USD in 1 day
(60 Reviews)
5.2

6 freelancers are bidding on average $27 for this job

pavelmishin2019

Dear client Thank you for your good job posting. I am very glad to see this job posting as one of full stack developers with 6+ years of experience. The role is very appealing to me, and I believe that my strong techni More

$20 USD in 7 days
(6 Reviews)
3.8
letag81619

I JUST READ YOUR DESCRIPTION AND I CAN DO THE PROJECT!! Hello I am a senior developer. I want to do it for you if you want. we can discuss more about this project. if you can send a reply. I waiting for you best respo More

$20 USD in 1 day
(0 Reviews)
0.0
mwebdeveloper

hi,I have gone through your description and got a pretty much idea of what you want. I can assure you that i can do this task. The skills and resources needed for this project are in my genes. I can assure you for a co More

$30 USD in 7 days
(1 Review)
0.0
skyhighcloud

I m interested in your project .I can help you and able to complete with perfect functionality as per your requirements. Please initiate a chat once to discuss in detail about the work to start.

$30 USD in 2 days
(0 Reviews)
0.0
thelehhman

Hey, I can help you integrate your website with the new Paypal SDK. Ping me up :) Best Samarjeet

$30 USD in 1 day
(0 Reviews)
0.0