Skip to content

Commit

Permalink
feat: Add klarna_payments to gateways configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Apr 12, 2022
1 parent 1f7de2a commit 87f2520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/PaymentGateway.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const PaymentGateway: FunctionComponent<PaymentGatewayProps> = ({
switch (paymentResource) {
case 'stripe_payments':
return <StripeGateway {...gatewayConfig}>{children}</StripeGateway>
case 'klarna_payments':
return <StripeGateway {...gatewayConfig}>{children}</StripeGateway>
case 'adyen_payments':
return <AdyenGateway {...gatewayConfig}>{children}</AdyenGateway>
case 'braintree_payments':
Expand Down
2 changes: 2 additions & 0 deletions src/reducers/PaymentMethodReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export type PaymentResource = keyof PaymentSourceObject
export type PaymentResourceKey =
| 'braintreePayment'
| 'stripePayment'
| 'klarnaPayment'
| 'wireTransfer'
| 'paypalPayment'
| 'adyenPayment'
Expand Down Expand Up @@ -398,6 +399,7 @@ export type PaymentMethodConfig = {
paypalPayment?: PaypalConfig
adyenPayment?: AdyenPaymentConfig
checkoutComPayment?: CheckoutComConfig
klarnaPayment?: StripeConfig
}

type SetPaymentMethodConfig = (
Expand Down

0 comments on commit 87f2520

Please sign in to comment.