Learn R Programming

RStripe (version 0.1)

stripe_create_refund: Create a Refund

Description

Create a new refund on a charge.

Usage

stripe_create_refund(api_key, charge_id, args = NULL)

Arguments

api_key
Your Stripe API Key
charge_id
The id of the charge to refund.
args
A list can contain amount,
amount
required An amount in cents to refund up to remaining charge.

refund_application_fee
required true/false if fee should be refunded. If true, proportional amount of refund is refunded.

metadata
required Any metadata to include on the refund.

Value

A data frame with the new refund info if successful.