Skip to content

Commit

Permalink
feat(): remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlabo committed Jan 22, 2025
1 parent 1e879f7 commit 776feb2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ class MetaData(protected var contextSupplier: Supplier<Context>) {
"com.getcapacitor.community.stripe.google_pay_existing_payment_method_required"
)

// @deprecated. will remove at v6.0.0
enableIdentifier =
appInfo.metaData.getBoolean("com.getcapacitor.community.stripe.enableIdentifier")

val isTest =
appInfo.metaData.getBoolean("com.getcapacitor.community.stripe.google_pay_is_testing")
googlePayEnvironment = if (isTest) {
Expand Down
18 changes: 0 additions & 18 deletions packages/terminal/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,22 +364,4 @@ export interface StripeTerminalPlugin {
eventName: TerminalEventsEnum.ReaderReconnectFailed,
listenerFunc: ({ reader }: { reader: ReaderInterface }) => void,
): Promise<PluginListenerHandle>;

/**
* @deprecated
* This method has been deprecated and replaced by the `collectPaymentMethod`.
* Similarly, note that TerminalEvents.Completed is now obsolete.
* And, method `confirmPaymentIntent` added to be executed after `collectPaymentMethod` is executed.
*
* This is left as type string to avoid accidental use.
*/
collect: string;

/**
* @deprecated
* This method has been deprecated and replaced by the `cancelCollectPaymentMethod`.
*
* This is left as type string to avoid accidental use.
*/
cancelCollect: string;
}

0 comments on commit 776feb2

Please sign in to comment.