Перейти к основному содержимому

Apple Create Payment API

POST /appleCreatePayment

Description

This API endpoint allows users to create a payment through Apple by providing an Apple payment receipt. The endpoint processes the payment and validates the receipt provided.

Request Body

The request utilizes GraphQL to perform the appleCreatePayment mutation.

Mutation:

mutation appleCreatePayment ($receipt: String) {
appleCreatePayment (receipt: $receipt)
}

Variables:

{
"receipt": "<Apple_Payment_Receipt>"
}
  • receipt (String): The receipt string provided by Apple upon the completion of an in-app purchase.

Response:

  • Success (200 OK):

    • If the payment creation is successful, the response will not return additional data, indicating that the receipt was processed correctly.
  • Error (4XX/5XX):

    • If there is an issue with the receipt or the payment process, the response will include an appropriate error message and status code.

Note:

Ensure that the receipt is a valid Apple payment receipt string. This API should be used to process and validate Apple payments within the platform.