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:
co-authored by
Carlos R. L. Rodrigues
Oli Juhl
parent
5d7c1ad655
commit
6ead7bf92d
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/payment-stripe": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(stripe): add promptpay
|
||||||
@@ -4,3 +4,4 @@ export { default as StripeGiropayService } from "./stripe-giropay"
|
|||||||
export { default as StripeIdealService } from "./stripe-ideal"
|
export { default as StripeIdealService } from "./stripe-ideal"
|
||||||
export { default as StripeProviderService } from "./stripe-provider"
|
export { default as StripeProviderService } from "./stripe-provider"
|
||||||
export { default as StripePrzelewy24Service } from "./stripe-przelewy24"
|
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",
|
GIROPAY: "stripe-giropay",
|
||||||
IDEAL: "stripe-ideal",
|
IDEAL: "stripe-ideal",
|
||||||
PRZELEWY_24: "stripe-przelewy24",
|
PRZELEWY_24: "stripe-przelewy24",
|
||||||
|
PROMPT_PAY : "stripe-promptpay",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user