⚠️ DISCLAIMER: Use at your own risk. This script is provided as a demonstration example. It illustrates how to interact with the payment service using simple URL redirects, bypassing the need for complex API integrations. While the code is functional and can be used as a starting point, please ensure it meets your security and business requirements before deploying it to a live production environment.
This is a simple, single-file PHP example demonstrating how to initiate a payment flow. Instead of using a backend API to create an order, this method constructs a specific URL with GET parameters and redirects the user directly to the payment page.
It is compatible with legacy environments (PHP 5.6+) and requires zero external libraries.
- How to collect user data (Email, Amount, Currency) via a standard HTML form.
- How to format that data into a query string.
- How to redirect the user to the payment gateway (
demo.dv.net) with the correct parameters.
- Download: Save the code as
index.php. - Configure: Open the file and locate the
$targetBaseUrlvariable at the top. You must replace the placeholder UUID with your actual Store ID. - Don't forget to enable setting "Form without API is active" in your project's settings. You can find it in Project -> Your specific project -> Advanced settings.
// REQURED: Replace the UUID below with your actual store ID
$targetBaseUrl = "https://demo.dv.net/pay/store/YOUR-ACTUAL-UUID-HERE/$uniqueId";