Xsolla-logo

Pay notification

post/push-payments/pay

Send this notification after successfully charging a user.

Request
Request Body schema: application/json
project_id
required
integer

Project ID.

required
object
geotype_id
required
integer

Distributor partner ID on the Xsolla's side.

amount
required
number

Amount of payment.

currency
string

Currency of the order. Virtual currency uses the SKU and real currency uses a three-letter ISO 4217 code.

ps_transaction_id
string

Transaction ID on the distribution partner’s side.

project_transaction_id
string

Transaction ID on the game developer’s side.

required
object
order_id
required
integer

Order ID.

required
object
id
required
string

Unique user identifier in the game.

email
string

User email address.

phone
string

User phone number.

ps_account_id
string

User's payment account ID on the distribution partner’s side.

Responses
200

OK.

400

Bad request.

403

Access denied.

404

Order not found.

409

Order is already paid.

422

Error while creating payment.

500

Internal server error.

Request samples
application/json
{
  • "project_id": 18404,
  • "payment": {
    },
  • "purchase": {
    },
  • "user": {
    }
}
Response samples
application/json
{
  • "payment_id": 784998484
}