පොඩ්ඩක් දන්න අය කොටගෙන යමුද..පොඩි දේවල් ටිකක් දැන ගන්න ඕන
Webxpay payment form eken nathuva code eka aethulinma submit karanna vidiyak nedda?
php valin full form eka genarate karala submit karath 1 second url eka penava
samapth eketh ekama thama case eka...eke nam form eka hadala sumbit karanna bahe js include ekak tiyena nisa
Sampath Sample Code
hosted-checkout.php
menna me page eka by pass karanna ona...
Webxpay payment form eken nathuva code eka aethulinma submit karanna vidiyak nedda?
php valin full form eka genarate karala submit karath 1 second url eka penava
samapth eketh ekama thama case eka...eke nam form eka hadala sumbit karanna bahe js include ekak tiyena nisa
Code:
<script type="text/javascript" src="https://sampath.paycorp.lk/webinterface/qw/paycorp_payments.js"></script>
Sampath Sample Code
hosted-checkout.php
Code:
<?php
echo "<br>Please Wait . . . ☻☻";
?>
<!DOCTYPE html>
<html>
<head>
<title>Hosted Checkout</title>
<link rel="shortcut icon" href="">
<link rel="stylesheet" type="text/css" href="stylesheets/style.css">
<script type="text/javascript" src="https://sampath.paycorp.lk/webinterface/qw/paycorp_payments.js"></script>
</head>
<body>
<div class="main-content">
<main>
<script>
function buildPayment() {
// Build the payment object
return {
// NOTE: this is the QuickWeb DEMO client ID.
// You may use it for initial setup
// but replace with the Client ID
// provided by Paycorp for final testing.
clientId: '',
paymentAmount: 1010,
currency: 'LKR',
returnUrl: 'http://localhost:82/dummy/response.php',
clientRef: 'CREF-12345',
comment: 'This is a demo payment'
};
}
</script>
<script type="text/javascript">
window.onload=function() {
document.getElementById("AutoClick").click();
};
</script>
<a href="#" id="AutoClick" class="button" onClick="loadPaycorpPayment(buildPayment())"></a>
</main>
</div>
</body>
</html>
menna me page eka by pass karanna ona...
Last edited: