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-10 22:44:52 +01:00
committed by GitHub
co-authored by Carlos R. L. Rodrigues Oli Juhl
parent 5d7c1ad655
commit 6ead7bf92d
4 changed files with 26 additions and 0 deletions
@@ -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"
@@ -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
@@ -43,4 +43,5 @@ export const PaymentProviderKeys = {
GIROPAY: "stripe-giropay",
IDEAL: "stripe-ideal",
PRZELEWY_24: "stripe-przelewy24",
PROMPT_PAY : "stripe-promptpay",
}