<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″ />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″ />
<title>PayPal SDK Python Demo <test></title>
</head>
<body>
<script data-sdk-integration-source=”integrationbuilder_ac”></script>
<div id=”paypal-button-container”></div>
<script src=”https://www.paypal.com/sdk/js?client-id=<test>”></script>
<script>
const FUNDING_SOURCES = [
paypal.FUNDING.PAYPAL,
paypal.FUNDING.CARD
];
FUNDING_SOURCES.forEach(fundingSource => {
paypal.Buttons({
fundingSource,
style: {
layout: ‘vertical’,
shape: ‘rect’,
color: (fundingSource==paypal.FUNDING.PAYLATER) ? ‘gold’ : ”,
},
createOrder: async (data, actions) => {
const response = await fetch(“/orders”, {
method: “POST”,
});
const details = await response.json();
return details.id;
},
onApprove: async (data, actions) => {
const response = await fetch(`/orders/${data.orderID}/capture`, {
method: “POST”,
});
const details = await response.json();
// Three cases to handle:
// (1) Recoverable INSTRUMENT_DECLINED -> call actions.restart()
// (2) Other non-recoverable errors -> Show a failure message
// (3) Successful transaction -> Show confirmation or thank you
// This example reads a v2/checkout/orders capture response, propagated from the server
// You could use a different API or structure for your ‘orderData’
const errorDetail = Array.isArray(details.details) && details.details[0];
if (errorDetail && errorDetail.issue === ‘INSTRUMENT_DECLINED’) {
return actions.restart(); // Recoverable state, per:
// https://developer.paypal.com/docs/checkout/integration-features/funding-failure/
}
if (errorDetail) {
let msg = ‘Sorry, your transaction could not be processed.’;
if (errorDetail.description) msg += ‘\n\n’ + errorDetail.description;
if (details.debug_id) msg += ‘ (‘ + details.debug_id + ‘)’;
return alert(msg); // Show a failure message (try to avoid alerts in production environments)
}
// Successful capture! For demo purposes:
console.log(‘Capture result’, details, JSON.stringify(details, null, 2));
const transaction = details.purchase_units[0].payments.captures[0];
alert(‘Transaction ‘+ transaction.status + ‘: ‘ + transaction.id + ‘\n\nSee console for all available details’);
},
})
.render(“#paypal-button-container”);
})
</script>
</body>
</html>
Social Media Management
$300
per month
One Platform
12 Post a Month
account setup
Customer Engagement
ad creation
Campaign management
Website Design
Start $499
A 5 pages Website
Include One Year Domain registration
One Year Hosting
Monthly Maintenance
SociaL Media Plugins
Web Support
SEO
$500
per month
Google Rank
A full website SEO audit for best practices
link-building strategy to increase overall traffic and relevance of your website
- An industry-specific keyword analysis performed on all live pages of your website.
Graphic Design
$75
One time fee
Flyers
Digital ad
Business Cards
Poster
Invitation cards
Logo Design
Developing Professional Polish
When your business needs to compete in a global market, it needs to stand out as a shining example of how to do things the right way in your industry. Our professional development programs help you do that!
Our team of amazing consultants will work with you one-on-one or in small groups at your site to create exceptional branding and marketing themes to make your business noticeable in all the right ways. We’ll help you polish your business’ public face to perfection.
Flexible for Your Needs
We understand that building your business makes your schedule crazy. For that reason, we don’t want to add to the chaos, so our consultants maintain a flexible schedule to meet your needs on your timeframe.
Contact us today for more details, to get a free quote on our services or to schedule an appointment.
“Content marketing is more than a buzzword. It is the hottest trend in marketing because it is the biggest gap between what buyers want and brands produce.” – Michael Brenner