Skip to content

Commit 629d5bc

Browse files
committed
update apiVersion for create-invoice only
1 parent 9932ba4 commit 629d5bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/stripe/actions/create-invoice/create-invoice.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default {
8181
},
8282
},
8383
async run({ $ }) {
84-
const resp = await this.app.sdk().invoices.create({
84+
const resp = await this.app.sdk("2022-11-15").invoices.create({
8585
...pick(this, [
8686
"customer",
8787
"subscription",

components/stripe/stripe.app.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,9 @@ export default {
656656
_apiKey() {
657657
return this.$auth.api_key;
658658
},
659-
sdk() {
659+
sdk(apiVersion = "2020-03-02") {
660660
return stripe(this._apiKey(), {
661-
apiVersion: "2022-11-15",
661+
apiVersion,
662662
maxNetworkRetries: 2,
663663
});
664664
},

0 commit comments

Comments
 (0)