Order creation for payment
Order creation for payment
Payment creation methods
The WEBPAY system provides two methods for creating payment orders and redirecting customers to the secure payment page:
- JSON API integration.
- Standard HTML form.
General payment process
The payment process for both integration methods includes the following stages:
Order creation. Your server creates the order using one of two methods:
- Creating and signing a request via JSON API.
- Generating an HTML page with a form containing all required fields.
Redirect to payment page. The customer is redirected (via POST request) to WEBPAY's secure payment page (https://securesandbox.webpay.by for testing, https://payment.webpay.by for production).
Card data entry. The customer enters their bank card details on the WEBPAY payment page.
Payment processing. The WEBPAY system processes the transaction through the processing center.
Customer return. After payment processing, the WEBPAY system automatically redirects the customer back to your website's URL specified in the order parameters.
Notification processing. WEBPAY sends a payment notification to your server with detailed payment results.
Service Confirmation. After successful verification of the notification, you provide the service or deliver the goods to the customer.