Skip to content

Commit

Permalink
Add explanation of the isTest Field
Browse files Browse the repository at this point in the history
Also add the returnURL field to docs
  • Loading branch information
lizkenyon committed Nov 22, 2023
1 parent 2dec481 commit 94de21e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/happy-lobsters-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ export interface RequestBillingOptions<Config extends AppConfigArg>
* The plan to request. Must be one of the values defined in the `billing` config option.
*/
plan: keyof Config['billing'];
/**
* Whether to use the test mode. This prevents the credit card from being charged. Test shops and demo shops cannot be charged.
*/
isTest?: boolean;
/**
* The URL to return to after the merchant approves the payment.
*/
returnUrl?: string;
}

export interface CancelBillingOptions {
Expand All @@ -38,6 +46,9 @@ export interface CancelBillingOptions {
* {@link https://shopify.dev/docs/apps/billing/subscriptions/cancel-recurring-charges}
*/
prorate?: boolean;
/*
* Whether to use the test mode. This prevents the credit card from being charged. Test shops and demo shops cannot be charged.
*/
isTest?: boolean;
}

Expand Down

0 comments on commit 94de21e

Please sign in to comment.