|
1
|
import StripeBase from "../core/stripe-base" |
|
2
|
import { PaymentIntentOptions, PaymentProviderKeys } from "../types" |
|
3
|
|
|
4
|
class OxxoProviderService extends StripeBase { |
|
5
|
static identifier = PaymentProviderKeys.OXXO |
|
6
|
|
|
7
|
constructor(_, options) { |
|
8
|
super(_, options) |
|
9
|
} |
|
10
|
|
|
11
|
get paymentIntentOptions(): PaymentIntentOptions { |
|
12
|
return { |
|
13
|
payment_method_types: ["oxxo"], |
|
14
|
capture_method: "automatic", |
|
15
|
payment_method_options: { |
|
16
|
oxxo: { |
|
17
|
expires_after_days: this.options.oxxoExpiresDays || 3, |
|
18
|
}, |
|
19
|
}, |
|
20
|
} |
|
21
|
} |
|
22
|
} |
|
23
|
|
|
24
|
export default OxxoProviderService |