Update Paypal post to PayPal JavaScript SDK

Fertiggestellt Veröffentlicht vor 3 Jahren Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

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

PHP JavaScript PayPal-API MySQL Twilio

Projekt-ID: #25664266

Über das Projekt

4 Vorschläge Remote Projekt Aktiv vor 3 Jahren

Vergeben an:

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 Tag
(65 Bewertungen)
5.3

4 Freelancer bieten im Durchschnitt $28 für diesen Job

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 Tagen
(9 Bewertungen)
4.4
thelehhman

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

$30 USD in 1 Tag
(1 Bewertung)
2.6
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 Mehr

$20 USD in 1 Tag
(0 Bewertungen)
0.0