Skip to content

Commit

Permalink
feat(stripe-payment): add promptpay (#9789)
Browse files Browse the repository at this point in the history
* feat(stripe): add promptpay

* Create selfish-wombats-smash.md

---------

Co-authored-by: Carlos R. L. Rodrigues <[email protected]>
Co-authored-by: Oli Juhl <[email protected]>
  • Loading branch information
3 people authored Nov 10, 2024
1 parent 5d7c1ad commit 6ead7bf
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-wombats-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/payment-stripe": patch
---

feat(stripe): add promptpay
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export { default as StripeGiropayService } from "./stripe-giropay"
export { default as StripeIdealService } from "./stripe-ideal"
export { default as StripeProviderService } from "./stripe-provider"
export { default as StripePrzelewy24Service } from "./stripe-przelewy24"
export { default as StripePromptpayService } from "./stripe-promptpay"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import StripeBase from "../core/stripe-base"
import { PaymentIntentOptions, PaymentProviderKeys } from "../types"

class PromptpayProviderService extends StripeBase {
static identifier = PaymentProviderKeys.PROMPT_PAY

constructor(_, options) {
super(_, options)
}

get paymentIntentOptions(): PaymentIntentOptions {
return {
payment_method_types: ["promptpay"],
capture_method: "automatic",
}
}
}

export default PromptpayProviderService
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ export const PaymentProviderKeys = {
GIROPAY: "stripe-giropay",
IDEAL: "stripe-ideal",
PRZELEWY_24: "stripe-przelewy24",
PROMPT_PAY : "stripe-promptpay",
}

0 comments on commit 6ead7bf

Please sign in to comment.