Comments (2)
In the sample below you may check an implementation where .js is loaded afterwards and button element is appended. You must replace the pyblickey with yours.
<html>
<body>
<script src="https://www.vivawallet.com/CMSScripts/jquery/jquery-1.11.3.min.js"></script>
<script>
function LoadButton() {
$('#btnContainer').empty();
$('#btnContainer').append('<button type="button" class="simple" data-vp-publickey="s5gR7Occme4i/d6kPzj4hg5R/KEFXnavmpAGMR+dtK0=" data-vp-lang="el" data-vp-description="Friendly description for you customer" data-vp-amount="4500"></button>');
$.getScript( "https://www.vivapayments.com/web/checkout/js");
};
</script>
<form action=/charge" method="POST">
<input type="button" onclick="LoadButton()" value="Load 'Pay with VivaWallet'"></input>
<div id="btnContainer"></div>
</form>
</body>
</html>
from api.
Thanks! That implementation is a little hacky, but it works great.
from api.
Related Issues (20)
- Woocommerce thank you page is showing not found HOT 3
- Viva Wallet public key HOT 4
- Ροή διασύνδεσης cloud erp με viva.com terminal HOT 2
- Nem sempre funciona a comuninção de sucesso da transação HOT 4
- POST to /connect/token throw 403 HOT 3
- Woocommerce plugin / Cancel payment shows as Pending payment order HOT 2
- Bad Request (400) - Authentication Authorization Amount Discrepancy HOT 2
- Viva smart checkout slow with errors HOT 4
- Transactions with Counterpart = null and UserDescription = null HOT 12
- Smarty error in 1.6 versions HOT 2
- No payment method available HOT 7
- Viva Wallet Smart Checkout Stops Before Card Issuer Further Verification HOT 6
- Get device as a demo account HOT 6
- All attempts to pay with viva card via an eshop purchase that uses viva checkout fail HOT 3
- Create the payment order | Postman HOT 3
- Question regarding MessageId and CorellationId in webhook payload HOT 4
- Demo environment returns "Your payment could not be processed" on all test cards HOT 2
- Order Notification is not send to customer HOT 3
- Compatibility with new Opencart 3.0.4.0 and PHP 8.1 HOT 2
- Integration with Prestashop HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.