Skip to content

Commit

Permalink
- Added comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennenoel committed Dec 2, 2023
1 parent 8a00ff7 commit 3e6a927
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/stripe/src/clients/stripe.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ export class StripeClient implements StripeClientInterface{
) {
}

/**
* This method filters the Credentials Provider base on the provided this.credentialProviderUniqueName attribute. It
* checks that there's actually a credential provider that matches the provided unique name.
* @private
*/
private getCredentialProvider(): CredentialsProviderInterface {
if(!this.credentialProviderUniqueName) {
this.logHandler.error(`The configuration '${StripeModuleKeyname}.credential_provider.name' contains an invalid unique name: '${this.credentialProviderUniqueName}'}`)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export interface CredentialsProviderInterface {
/**
* This method returns the Stripe API Key.
*/
getStripeApiKey(): string;

/**
* This method returns a unique string uniquely identifying the Credential Provider.
*/
getUniqueName(): string
}

0 comments on commit 3e6a927

Please sign in to comment.