Skip to content

dv-net/simple-payment-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

No-API Payment Integration Demo (PHP)

⚠️ 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.

🎯 What this demo shows

  1. How to collect user data (Email, Amount, Currency) via a standard HTML form.
  2. How to format that data into a query string.
  3. How to redirect the user to the payment gateway (demo.dv.net) with the correct parameters.

⚙️ Setup & Configuration

  1. Download: Save the code as index.php.
  2. Configure: Open the file and locate the $targetBaseUrl variable at the top. You must replace the placeholder UUID with your actual Store ID.
  3. 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";

About

No-API Payment Integration Demo (PHP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages