feat(stripe-payment): add promptpay (#9789)

* feat(stripe): add promptpay

* Create selfish-wombats-smash.md

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Dos
2024-11-11 04:44:52 +07:00
committed by GitHub
parent 5d7c1ad655
commit 6ead7bf92d
4 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/payment-stripe": patch
---
feat(stripe): add promptpay

View File

@@ -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"

View File

@@ -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

View File

@@ -43,4 +43,5 @@ export const PaymentProviderKeys = {
GIROPAY: "stripe-giropay",
IDEAL: "stripe-ideal",
PRZELEWY_24: "stripe-przelewy24",
PROMPT_PAY : "stripe-promptpay",
}