PayPal Approve Payment API
POST /paypalApprovePayment
Description
This API endpoint allows users to approve a payment through PayPal by providing the PayPal order ID. The endpoint finalizes the payment process and returns the result of the approval.
Request Body
The request utilizes GraphQL to perform the paypalApprovePayment
mutation.
Mutation:
mutation paypalApprovePayment ($orderId: String) {
paypalApprovePayment (orderId: $orderId) {
success
errorMessage
}
}