UniversePay Payment Gateway Integration
/**** Just Create call.php and put following code ****/
<script src="https://code.jquery.com/jquery-1.11.0.min.js" integrity="sha256-spTpc4lvj4dOkKjrGokIrHkJgNA0xMS98Pw9N7ir9oI=" crossorigin="anonymous"></script>
<script src="https://api.universepay.eu/static_common/v1/checkout/oplata.js"></script>
<script>
var button = $ipsp.get('button');
button.setMerchantId(1396339);
button.setAmount('100', 'USD');
button.setHost('api.universepay.eu');
button.setResponseUrl("http://localhost/universepay/universe_return.php");
location.href=button.getUrl()
</script>
<button onclick="location.href=button.getUrl()">Pay</button>
/**** **************************************** ****/
/**** Just Create universe_return.php and put following code ****/
<?php
echo 'Success Part';
echo '<pre>';
print_r($_POST);
?>
Note*: You can insert response to database.
/**** **************************************** ****/
/**** Test Payment Details ****/
Documentation URL : https://client.universepay.eu/info/api/v1.0/30
<script src="https://code.jquery.com/jquery-1.11.0.min.js" integrity="sha256-spTpc4lvj4dOkKjrGokIrHkJgNA0xMS98Pw9N7ir9oI=" crossorigin="anonymous"></script>
<script src="https://api.universepay.eu/static_common/v1/checkout/oplata.js"></script>
<script>
var button = $ipsp.get('button');
button.setMerchantId(1396339);
button.setAmount('100', 'USD');
button.setHost('api.universepay.eu');
button.setResponseUrl("http://localhost/universepay/universe_return.php");
location.href=button.getUrl()
</script>
<button onclick="location.href=button.getUrl()">Pay</button>
/**** **************************************** ****/
/**** Just Create universe_return.php and put following code ****/
<?php
echo 'Success Part';
echo '<pre>';
print_r($_POST);
?>
Note*: You can insert response to database.
/**** **************************************** ****/
/**** Test Payment Details ****/
Parameter Value
merchant_id 1396339
transaction password test
currency EUR, USD, GBP, RUB, UAH
Test card numbers
Card number Expiry date CVV2 3DSecure Response type
4444555566661111 10/2020 or any 123 yes approve
URL: https://client.universepay.eu/mportal/#/account/login?next=https://client.universepay.eu/mportal/#/
Documentation URL : https://client.universepay.eu/info/api/v1.0/30
Comments
Post a Comment