pub struct Payment;
Implementations§
Source§impl Payment
impl Payment
Captures an authorized payment, by ID.
Sourcepub async fn refund_captured(
client: &Client,
capture_id: String,
dto: RefundCapturedPaymentDto,
) -> Result<RefundCapturedPaymentResponse, PayPalError>
pub async fn refund_captured( client: &Client, capture_id: String, dto: RefundCapturedPaymentDto, ) -> Result<RefundCapturedPaymentResponse, PayPalError>
Refunds a captured payment, by ID. For a full refund, include an empty payload in the JSON request body. For a partial refund, include an amount object in the JSON request body.
Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available, reauthorize a payment after its initial three-day honor period expires. Within the 29-day authorization period, you can issue multiple re-authorizations after the honor period expires.
If 30 days have transpired since the date of the original authorization, you must create an authorized payment instead of reauthorizing the original authorized payment.
A reauthorized payment itself has a new honor period of three days.
You can reauthorize an authorized payment once for up to 115% of the original authorized amount, not to exceed an increase of $75 USD.
Supports only the amount request parameter.
Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been fully captured.