CoinPayment Create Payment 2 API
POST /coinpaymentCreatePayment2
Description
This API endpoint allows users to create a payment through CoinPayment using a simplified response format. By providing details such as payment category, group ID, additional login count, and the cryptocurrency to be used, the endpoint initiates the payment process and returns an error message if any issues arise.
Request Body
The request utilizes GraphQL to perform the coinpaymentCreatePayment2
mutation.
Mutation:
mutation coinpaymentCreatePayment2 (
$category: PaymentCategory!,
$groupId: Int,
$moreLoginCount: Int,
$coin: String!
) {
coinpaymentCreatePayment2 (
category: $category,
groupId: $groupId,
moreLoginCount: $moreLoginCount,
coin: $coin
) {
error
}
}
Variables:
{
"category": "<Payment_Category>",
"groupId": 0,
"moreLoginCount": 0,
"coin": "<Cryptocurrency>"
}