Send this notification after successfully charging a user.
Digital Distribution Hub (1.0.0)
Digital Distribution Hub is a new Xsolla solution that aims to connect digital and cash based payments via push payments technology and e-commerce.
This reference combines API endpoints for two Xsolla products: In-Game Store and Pay Station. There are two base URLs:
https://store.xsolla.com/apifor the Common, Catalog, Cart, and Order groups.https://ps.xsolla.comfor the Notifications group.
API endpoints in the Catalog group don’t require authorization.
To work with operations in the Cart and Order groups, you need to generate a token via Create user token.
Note
This reference shows a design of a future API and not a fully functioning interface. Currently, you can try only Catalog and Notifications groups endpoints. If you’d like to share your feedback, please email us at techdoc@xsolla.com.
This reference shows a design of a future API and not a fully functioning interface. Currently, you can try only Catalog and Notifications groups endpoints. If you’d like to share your feedback, please email us at techdoc@xsolla.com.
Download OpenAPI description
Languages
Servers
Mock server
https://xsolla.redocly.app/_mock/api/digital-distribution-hub/
https://store.xsolla.com/api/
Bodyapplication/json
Currency of the order. Virtual currency uses the SKU and real currency uses a three-letter ISO 4217 code.
- Mock serverhttps://xsolla.redocly.app/_mock/api/digital-distribution-hub/push-payments/pay
- https://ps.xsolla.com/push-payments/pay
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://xsolla.redocly.app/_mock/api/digital-distribution-hub/push-payments/pay \
-H 'Content-Type: application/json' \
-d '{
"project_id": 18404,
"payment": {
"geotype_id": 13038,
"amount": 10,
"currency": "USD",
"ps_transaction_id": "ps_transaction_id"
},
"purchase": {
"order_id": 1334430
},
"user": {
"id": "s.ivanov"
}
}'Response
application/json
{ "payment_id": 784998484 }
- Mock serverhttps://xsolla.redocly.app/_mock/api/digital-distribution-hub/push-payments/cancel
- https://ps.xsolla.com/push-payments/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://xsolla.redocly.app/_mock/api/digital-distribution-hub/push-payments/cancel \
-H 'Content-Type: application/json' \
-d '{
"payment_id": 784998479
}'