How vr-payment/php-sdk works
VRPayment PHP SDK is a client library for calling VRPayment’s REST API. A consumer configures credentials, creates a service, invokes an endpoint, and receives typed model data or an API exception. The tree and README show broad endpoint coverage across payments, customers, subscriptions, accounts, and webhooks; sampled services reference shared authentication, configuration, request-formatting, and serialization code. Some listed capabilities have no corresponding service file in this tree, so their internals are not represented here.
Main entry points: CustomersService.php Customers · HttpBearerAuth.php Bearer Authentication · ObjectSerializer.php Object Serialization · Configuration.php Configuration
Components 20
Payment Operations
- Payment Terminals
lib/Service/PaymentTerminalsService.php - Payment Web Apps
lib/Service/PaymentWebAppsService.php - Refunds
lib/Service/RefundsService.php - Transaction Invoices
lib/Service/TransactionInvoicesService.php
Customer and Account
- Customers
lib/Service/CustomersService.php - Accounts
lib/Service/AccountsService.php - Application Users
lib/Service/ApplicationUsersService.php
Subscriptions
- Subscriptions
lib/Service/SubscriptionsService.php - Subscription Products
lib/Service/SubscriptionProductsService.php
Webhooks
- Webhook Listeners
lib/Service/WebhookListenersService.php - Webhook URLs
lib/Service/WebhookURLsService.php
SDK Runtime
- Configuration
lib/Configuration.php - Bearer Authentication
lib/Auth/HttpBearerAuth.php - Header Selection
lib/HeaderSelector.php - Form Processing
lib/FormDataProcessor.php - Object Serialization
lib/ObjectSerializer.php - API Models
lib/Model/ModelInterface.php - API Exceptions
lib/ApiException.php
Other components
- SDK Consumer
- VRPayment REST API
Connections 40
- SDK Consumer → Configuration: configures
README.md - SDK Consumer → Transaction Invoices: invokes
README.md - Transaction Invoices → VRPayment REST API: sends requests
README.md - Payment Terminals → VRPayment REST API: calls endpoints
README.md - Payment Web Apps → VRPayment REST API: calls endpoints
README.md - Refunds → VRPayment REST API: calls endpoints
README.md - Customers → VRPayment REST API: calls endpoints
README.md - Accounts → VRPayment REST API: calls endpoints
README.md - Application Users → VRPayment REST API: calls endpoints
README.md - Subscriptions → VRPayment REST API: calls endpoints
README.md - Subscription Products → VRPayment REST API: calls endpoints
README.md - Webhook Listeners → VRPayment REST API: calls endpoints
README.md - Webhook URLs → VRPayment REST API: calls endpoints
README.md - Customers → Bearer Authentication: uses
lib/Service/CustomersService.php - Customers → Configuration: uses
lib/Service/CustomersService.php - Customers → Form Processing: uses
lib/Service/CustomersService.php - Customers → Header Selection: uses
lib/Service/CustomersService.php - Customers → Object Serialization: uses
lib/Service/CustomersService.php - Customers → API Exceptions: raises
lib/Service/CustomersService.php - Payment Terminals → Bearer Authentication: uses
lib/Service/PaymentTerminalsService.php - Payment Terminals → Configuration: uses
lib/Service/PaymentTerminalsService.php - Payment Terminals → Object Serialization: uses
lib/Service/PaymentTerminalsService.php - Payment Terminals → API Exceptions: raises
lib/Service/PaymentTerminalsService.php - Payment Web Apps → Bearer Authentication: uses
lib/Service/PaymentWebAppsService.php - Payment Web Apps → Configuration: uses
lib/Service/PaymentWebAppsService.php - Payment Web Apps → Object Serialization: uses
lib/Service/PaymentWebAppsService.php - Subscriptions → Bearer Authentication: uses
lib/Service/SubscriptionsService.php - Subscriptions → Configuration: uses
lib/Service/SubscriptionsService.php - Subscriptions → Object Serialization: uses
lib/Service/SubscriptionsService.php - Transaction Invoices → Bearer Authentication: uses
lib/Service/TransactionInvoicesService.php - Transaction Invoices → Configuration: uses
lib/Service/TransactionInvoicesService.php - Transaction Invoices → Object Serialization: uses
lib/Service/TransactionInvoicesService.php - Webhook Listeners → Bearer Authentication: uses
lib/Service/WebhookListenersService.php - Webhook Listeners → Configuration: uses
lib/Service/WebhookListenersService.php - Webhook Listeners → Object Serialization: uses
lib/Service/WebhookListenersService.php - Webhook URLs → Bearer Authentication: uses
lib/Service/WebhookURLsService.php - Webhook URLs → Configuration: uses
lib/Service/WebhookURLsService.php - Webhook URLs → Object Serialization: uses
lib/Service/WebhookURLsService.php - Object Serialization → API Models: serializes
lib/ObjectSerializer.php - Bearer Authentication → VRPayment REST API: signs requests