Comments (2)
Oh, I see, I have to retrieve the charge first, then issue a refund on the returned object.
Is there no way to simply provide an API that is:
Charge.refund(chargeId, key)
for full order refunds, where the chargeId would be substituted within the URL for the appropriate REST call?
Thanks.
-=david=-
from stripe-java.
Hi David,
Yikes -- sorry for never replying to this.
There currently is no way to do the refund statically. That being said, I realize that this creating the need for 2 api calls is a bit unfortunate. I'd be a bit concerned about API orthogonality if we went in and added static convenience methods for these things, but the convenience of having the static style is definitely a notable issue, and something that we'll keep in mind. We'll write back here if we have anything new to share.
from stripe-java.
Related Issues (20)
- Allow Webhook class instance to be configured with java.time.Clock HOT 2
- Official support for Spring Boot HOT 3
- getResponseGetter() not set on account.capabilities() HOT 2
- Cannot Unset Invoice Settings Custom Field of a Given Customer HOT 1
- Unable to use Webhook.constructEvent when using StripeClient HOT 1
- Customer.getCashBalanceTransactions does not exist HOT 2
- PaymentIntent error when gson version is < 2.9.1 HOT 2
- Stripe-java in am quarkus application is returning null for all Stripe resource requests HOT 2
- Add feature to add Discount in SubscriptionCreateParams HOT 3
- Change due date attribute of Stripe invoice to a past date HOT 2
- Price object tiers field is null even though the price has tiers setup HOT 1
- retrieve raw JSON, instead of immediately parsing into Stripe Models HOT 3
- `toJson` fails to create exactly the same json as the Stripe HTTP API HOT 2
- API error shadowed by ClassCastException message if error is not a json object HOT 1
- Missing Function in Meter Class HOT 7
- Add network_details to dispute HOT 3
- Null value from PaymentMethod.retrieve associated to a Link Payment HOT 2
- The getFeatures function in stripe.com.model.Product provided in the documentation don't exists HOT 2
- stripeClient throw JsonSyntaxException instead of StripeException HOT 1
- Support Request Signing (alternative to API keys) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-java.