feat(medusa-payment-stripe): Stripe PaymentProcessor implementation (#3257)

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2023-02-28 18:44:24 +01:00
1 parent d61d6c7b7f
commit 589d1c09b0
55 files changed
+2325 -1278

No files matched your search

@@ -27,6 +27,7 @@ export interface ICartCompletionStrategy {
}
export abstract class AbstractCartCompletionStrategy
extends TransactionBaseService
implements ICartCompletionStrategy
{
abstract complete(
@@ -33,11 +33,6 @@ export interface PaymentProcessor {
*/
getIdentifier(): string
/**
* Used to initialise anything like an SDK or similar
*/
init(): Promise<void>
/**
* Initiate a payment session with the external provider
*/
@@ -147,8 +142,6 @@ export abstract class AbstractPaymentProcessor implements PaymentProcessor {
return ctr.identifier
}
abstract init(): Promise<void>
abstract capturePayment(
paymentSessionData: Record<string, unknown>
): Promise<