API Signature

SteveStuartDJ
Contributor
Contributor

This smart button thing is driving me nuts, I'm losing sales every day for the last 2 months. I keep making new Sandbox & Live IDs, pasting the new script into my pay pages, testing in Sandbox, swopping the Sandbox ID for the Live ID, then sit and wait . . . . then I see on my stats there's been a customer, but for some reason they couldn't complete. I keep seeing bits and bobs that may be the answer, but now I've seen this bit of info:
**API Signature Apply your API Signature to your integration. For preconfigured shopping carts: Copy and paste the API Username, API Password, and Signature into your shopping cart’s configuration or administration screen.**

OK, so I have those bits of API info, BUT, I don't just copy and paste them into my buy page, there must be a place for them somewhere in the configuration, but where? If I could see an example, I could suss it, but just telling me to copy and paste it into my configuration is beyond me.
I have such a great log list of 'probables' it's mind boggling.
I went for the pre-configured set-up because it said it was easy, that was just after Xmas!! 
Can anyone help me? Please? 
Here's my buy page:-

 

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />


<title>Car****nsPay</title>


<style type="text/css">
.auto-style1 {
font-size: large;
}
</style>


<link href="stylepay.css" rel="stylesheet" type="text/css">
</head>


<body>

 

<p class="auto-style1">Download Ca****ons</p>
<br />
<br />

 

<div id="smart-button-container">
<div style="text-align: center;">
<div id="paypal-button-container"></div>
</div>
</div>
<script src="https://www.paypal.com/sdk/js?client-id=AZgh9bB5XSEka2PB1aXiTziB***********B5qpMwIoqDlTLxx5F6AjojJa8..." data-sdk-integration-source="button-factory"></script>


<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'pill',
color: 'gold',
layout: 'vertical',
label: 'buynow',

},

createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{"description":"C****ns","amount":{"currency_code":"GBP","value":3}}]
});
},

onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
alert('Transaction completed by ' + details.payer.name.given_name + '!');
});
},

onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();
</script>




<script type="text/javascript">
var sc_project=12474920;
var sc_invisible=1;
var sc_security="8871ed88";
</script>
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<div class="statcounter"><a title="Web Analytics
Made Easy - StatCounter" href="https://statcounter.com/"
target="_blank"><img class="statcounter"
src="https://c.statcounter.com/12474920/0/8871ed88/1/"
alt="Web Analytics Made Easy -
StatCounter"></a></div>
<!-- End of Statcounter Code -->


</body>

</html>

 

 

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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