Sarraf API
Preparing search index...
core/src
CreateCheckoutInput
Interface CreateCheckoutInput<Id>
interface
CreateCheckoutInput
<
Id
extends
ProviderId
=
ProviderId
>
{
amount
:
Money
;
customer
:
Customer
;
expiresInSeconds
?:
number
;
idempotencyKey
?:
string
;
items
?:
LineItem
[]
;
locale
?:
"en"
|
"ar"
;
metadata
?:
Record
<
string
,
string
>
;
methods
?:
PaymentMethod
[]
;
provider
:
Id
;
providerOptions
?:
Id
extends
never
?
ProviderOptionsRegistry
[
Id
]
:
Record
<
string
,
unknown
>
;
reference
:
string
;
returnUrl
?:
string
;
webhookUrl
?:
string
;
}
Type Parameters
Id
extends
ProviderId
=
ProviderId
Index
Properties
amount
customer
expires
In
Seconds?
idempotency
Key?
items?
locale?
metadata?
methods?
provider
provider
Options?
reference
return
Url?
webhook
Url?
Properties
amount
amount
:
Money
customer
customer
:
Customer
Optional
expires
In
Seconds
expiresInSeconds
?:
number
Optional
idempotency
Key
idempotencyKey
?:
string
Optional
items
items
?:
LineItem
[]
Optional
locale
locale
?:
"en"
|
"ar"
Optional
metadata
metadata
?:
Record
<
string
,
string
>
Optional
methods
methods
?:
PaymentMethod
[]
provider
provider
:
Id
Optional
provider
Options
providerOptions
?:
Id
extends
never
?
ProviderOptionsRegistry
[
Id
]
:
Record
<
string
,
unknown
>
reference
reference
:
string
Merchant order id. Some providers require it to be unique per attempt.
Optional
return
Url
returnUrl
?:
string
Optional
webhook
Url
webhookUrl
?:
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
amount
customer
expires
In
Seconds
idempotency
Key
items
locale
metadata
methods
provider
provider
Options
reference
return
Url
webhook
Url
Sarraf API
Loading...
Merchant order id. Some providers require it to be unique per attempt.